Android
java.nio.channels
public abstract class

java.nio.channels.Pipe

java.lang.Object
java.nio.channels.Pipe

A pipe contains two channels. One is the writable sink channel and the other is readable source channel. When bytes are written into the writable channel they can be read from readable channel. The order of these bytes remains unchanged.

Nested Classes
Pipe.SinkChannel Writable sink channel for writing into. 
Pipe.SourceChannel Readable source channel for reading from. 

Summary

Protected Constructors

            Pipe()
The protected constructor.

Public Methods

      static    Pipe  open()
Initializes a pipe.
abstract          Pipe.SinkChannel  sink()
Returns the sink channel of the pipe.
abstract          Pipe.SourceChannel  source()
Returns the source channel of the pipe.
Methods inherited from class java.lang.Object

Details

Protected Constructors

protected Pipe()

The protected constructor.

Public Methods

public static Pipe open()

Initializes a pipe.

Returns

  • a new instance of pipe

Throws

IOException if I/O error occurs

public abstract Pipe.SinkChannel sink()

Returns the sink channel of the pipe.

Returns

  • a writable sink channel of the pipe

public abstract Pipe.SourceChannel source()

Returns the source channel of the pipe.

Returns

  • a readable source channel of the pipe
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48