| java.lang.Object java.io.Reader java.io.FilterReader
All known Subclasses: java.io.PushbackReader,
FilterReader | abstract public class FilterReader extends Reader (Code) | | Abstract class for reading filtered character streams.
The abstract class FilterReader itself
provides default methods that pass all requests to
the contained stream. Subclasses of FilterReader
should override some of these methods and may also provide
additional methods and fields.
version: 1.11, 00/02/02 author: Mark Reinhold since: JDK1.1 |
Field Summary | |
protected Reader | in The underlying character-input stream. |
Method Summary | |
public void | close() Close the stream. | public void | mark(int readAheadLimit) Mark the present position in the stream. | public boolean | markSupported() Tell whether this stream supports the mark() operation. | public int | read() Read a single character. | public int | read(char cbuf, int off, int len) Read characters into a portion of an array. | public boolean | ready() Tell whether this stream is ready to be read. | public void | reset() Reset the stream. | public long | skip(long n) Skip characters. |
in | protected Reader in(Code) | | The underlying character-input stream.
|
FilterReader | protected FilterReader(Reader in)(Code) | | Create a new filtered reader.
Parameters: in - a Reader object providing the underlying stream. throws: NullPointerException - if in is null |
mark | public void mark(int readAheadLimit) throws IOException(Code) | | Mark the present position in the stream.
exception: IOException - If an I/O error occurs |
markSupported | public boolean markSupported()(Code) | | Tell whether this stream supports the mark() operation.
|
read | public int read(char cbuf, int off, int len) throws IOException(Code) | | Read characters into a portion of an array.
exception: IOException - If an I/O error occurs |
ready | public boolean ready() throws IOException(Code) | | Tell whether this stream is ready to be read.
exception: IOException - If an I/O error occurs |
|
|