|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Field Summary |
Fields inherited from class java.io.Reader |
Constructor Summary |
||
Creates a PipedReader so
that it is not yet connected.
|
||
PipedReader(int pipeSize)
Creates a PipedReader so that it is not yet
connected and uses
the specified pipe size for the pipe's buffer.
|
||
PipedReader(PipedWriter src)
Creates a PipedReader so
that it is connected to the piped writer
src.
|
||
PipedReader(PipedWriter src, int pipeSize)
Creates a PipedReader so that it is connected
to the piped writer src and uses the specified
pipe size for the pipe's buffer.
|
Method Summary |
||
void |
close()
Closes this piped stream and releases any system resources
associated with the stream.
|
|
void |
connect(PipedWriter src)
Causes this piped reader to be connected
to the piped writer src.
|
|
int |
read()
Reads the next character of data from this piped stream.
|
|
int |
read(char[] cbuf, int off, int len)
Reads characters into a portion of an array.
|
|
boolean |
ready()
Tell whether this stream is ready to be read.
|
Methods inherited from class java.io.Reader |
mark, markSupported, nullReader, read, read, reset, skip, transferTo |
Methods inherited from class java.lang.Object |
public PipedReader |
(PipedWriter src) |
throws |
public PipedReader |
(PipedWriter src, int pipeSize) |
throws |
public PipedReader |
() |
public PipedReader |
(int pipeSize) |
public void connect |
(PipedWriter src) |
throws |
If src is an unconnected piped writer and snk is an unconnected piped reader, they may be connected by either the call:
snk.connect(src)
or the call:
src.connect(snk)
The two calls have the same effect.
public int read |
() |
throws |
public int read |
(char[] cbuf, int off, int len) |
throws |
If len is zero, then no characters are read and 0 is returned; otherwise, there is an attempt to read at least one character. If no character is available because the stream is at its end, the value -1 is returned; otherwise, at least one character is read and stored into cbuf.
Fewer than len characters will be read if len exceeds the pipe's buffer size.
public boolean ready |
() |
throws |
public void close |
() |
throws |
|
FlexDoc/Javadoc 2.0 Demo Java Doc |