API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. PipedReader View Source
Author(s)
Mark Reinhold
Since
JDK1.1
Version
1.19, 06/06/28
Serial
Hierarchy
 Object
      Reader
          PipedReader
Implements
Subclasses
Description
public class PipedReader
  Piped character-input streams.
See also:   
Constructors
public PipedReader ()
  Creates a PipedReader so that it is not yet connected.
public PipedReader (int pipeSize)
  Creates a PipedReader so that it is not yet connected and uses the specified pipe size for the pipe's buffer.
public PipedReader (PipedWriter src) throws IOException
  Creates a PipedReader so that it is connected to the piped writer src.
public PipedReader (PipedWriter src, int pipeSize) throws IOException
  Creates a PipedReader so that it is connected to the piped writer src and uses the specified pipe size for the pipe's buffer.
Methods
Hide/Show inherited methods
public void close () throws IOException [Specified in Reader]
  Closes this piped stream and releases any system resources associated with the stream.
public void connect (PipedWriter src) throws IOException
  Causes this piped reader to be connected to the piped writer src.
public void mark (int readAheadLimit) throws IOException [Inherited From Reader]
  Marks the present position in the stream.
public boolean markSupported () [Inherited From Reader]
  Tells whether this stream supports the mark() operation.
publicsynchronized int read () throws IOException [Overrides Reader]
  Reads the next character of data from this piped stream.
public int read (char[] cbuf) throws IOException [Inherited From Reader]
  Reads characters into an array.
publicsynchronized int read (char[] cbuf, int off, int len) throws IOException [Specified in Reader]
  Reads up to len characters of data from this piped stream into an array of characters.
public int read (CharBuffer target) throws IOException [Inherited From Reader]
  Attempts to read characters into the specified character buffer.
publicsynchronized boolean ready () throws IOException [Overrides Reader]
  Tell whether this stream is ready to be read.
pack-privatesynchronized void receive (char[] c, int off, int len) throws IOException
  Receives data into an array of characters.
pack-privatesynchronized void receive (int c) throws IOException
  Receives a char of data.
pack-privatesynchronized void receivedLast ()
Notifies all waiting threads that the last character of data has been received.
public void reset () throws IOException [Inherited From Reader]
  Resets the stream.
public long skip (long n) throws IOException [Inherited From Reader]
  Skips characters.
Fields
Hide/Show inherited fields
pack-private char buffer
The circular buffer into which incoming data is placed.
pack-private boolean closedByReader
pack-private boolean closedByWriter
pack-private boolean connected
pack-private int in
  The index of the position in the circular buffer at which the next character of data will be stored when received from the connected piped writer.
protected Object lock [Inherited From Reader]
  The object used to synchronize operations on this stream.
pack-private int out
The index of the position in the circular buffer at which the next character of data will be read by this piped reader.
pack-private Thread readSide
pack-private Thread writeSide
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar