java.nio.channels
Class Pipe

java.lang.Object
  extended by java.nio.channels.Pipe

public abstract class Pipe
extends Object

Since:
1.4

Nested Class Summary
static class Pipe.SinkChannel
           
static class Pipe.SourceChannel
           
 
Constructor Summary
protected Pipe()
          Initializes the pipe.
 
Method Summary
static Pipe open()
          Opens a pipe.
abstract  Pipe.SinkChannel sink()
          Returns a pipe's sink channel.
abstract  Pipe.SourceChannel source()
          Returns a pipe's source channel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pipe

protected Pipe()
Initializes the pipe.

Method Detail

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