blob: 3907b0f225784fc4b7f09a7ae751fc8f282784ea [file] [log] [blame]
/*******************************************************************************
* Copyright © 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package java.nio.channels;
import eglx.java.JavaObject;
import eglx.lang.ExternalName;
import java.nio.channels.spi.AbstractSelectableChannel;
externalType Pipe type JavaObject
private constructor();
static function _open() returns(Pipe?){@externalName{"open"}, @Throws};
function sink() returns(Pipe_SinkChannel?);
function source() returns(Pipe_SourceChannel?);
end
externalType Pipe_SourceChannel extends AbstractSelectableChannel, ReadableByteChannel, ScatteringByteChannel type JavaObject{externalName = "Pipe.SourceChannel"}
private constructor();
function validOps() returns(int);
end
externalType Pipe_SinkChannel extends AbstractSelectableChannel, WritableByteChannel, GatheringByteChannel type JavaObject{externalName = "Pipe.SinkChannel"}
private constructor();
function validOps() returns(int);
end