java.nio.channels
Class Pipe
java.lang.Object
java.nio.channels.Pipe
public abstract class Pipe
- extends Object
- Since:
- 1.4
Constructor Summary |
protected |
Pipe()
Initializes the pipe. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pipe
protected Pipe()
- Initializes the pipe.
open
public static Pipe open()
throws IOException
- Opens a pipe.
- Throws:
IOException
- If an error occurs
sink
public abstract Pipe.SinkChannel sink()
- Returns a pipe's sink channel.
source
public abstract Pipe.SourceChannel source()
- Returns a pipe's source channel