| |
|
| java.lang.Object java.nio.channels.Pipe
Pipe | abstract public class Pipe (Code) | | A pipe contains two channels. One is the writable sink channel and the other is
readable source channel. When bytes are written into the writable channel they
can be read from readable channel. The order of these bytes remains unchanged.
|
Constructor Summary | |
protected | Pipe() The protected constructor. |
Method Summary | |
public static Pipe | open() Initializes a pipe. | abstract public SinkChannel | sink() Returns the sink channel of the pipe. | abstract public SourceChannel | source() Returns the source channel of the pipe. |
Pipe | protected Pipe()(Code) | | The protected constructor.
|
sink | abstract public SinkChannel sink()(Code) | | Returns the sink channel of the pipe.
a writable sink channel of the pipe |
source | abstract public SourceChannel source()(Code) | | Returns the source channel of the pipe.
a readable source channel of the pipe |
|
|
|