java.lang.Object | |
↳ | java.nio.channels.Pipe |
A pipe contains two channels, forming a unidirectional pipe. One is the writable sink channel, and the other is the readable source channel. When bytes are written into the writable channel they can be read from the readable channel. Bytes are read in the order in which they were written.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Pipe.SinkChannel | Writable sink channel used to write to a pipe. | |||||||||
|
Pipe.SourceChannel | Readable source channel used to read from a pipe. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
The protected default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns a new pipe from the default .
|
||||||||||
|
Returns the sink channel of the pipe.
|
||||||||||
|
Returns the source channel of the pipe.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the sink channel of the pipe.
Returns the source channel of the pipe.