java.nio.channels

Class Pipe

public abstract class Pipe extends Object

Since: 1.4

Nested Class Summary
abstract static classPipe.SinkChannel
abstract static classPipe.SourceChannel
Constructor Summary
protected Pipe()
Initializes the pipe.
Method Summary
static Pipeopen()
Opens a pipe.
abstract Pipe.SinkChannelsink()
Returns a pipe's sink channel.
abstract Pipe.SourceChannelsource()
Returns a pipe's source channel

Constructor Detail

Pipe

protected Pipe()
Initializes the pipe.

Method Detail

open

public static Pipe open()
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