public abstract class Pipe extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipe.SinkChannel
Writable sink channel used to write to a pipe.
|
static class |
Pipe.SourceChannel
Readable source channel used to read from a pipe.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Pipe()
The protected default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Pipe |
open()
Returns a new pipe from the default
SelectorProvider. |
abstract Pipe.SinkChannel |
sink()
Returns the sink channel of the pipe.
|
abstract Pipe.SourceChannel |
source()
Returns the source channel of the pipe.
|
public static Pipe open() throws IOException
SelectorProvider.IOException - if an I/O error occurs.public abstract Pipe.SinkChannel sink()
public abstract Pipe.SourceChannel source()