Class: java.io.FilterReader
- public abstract class FilterReader
- extends Reader
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.Methods
-
FilterReadertop
protected FilterReader(Reader in)Create a new filtered reader. -
closetop
public void close() throws IOExceptionClose the stream. -
marktop
public void mark(int readAheadLimit) throws IOExceptionMark the present position in the stream. -
markSupportedtop
public boolean markSupported()Tell whether this stream supports the mark() operation.- Override hierarchy:
- markSupported from Reader
-
readtop
public int read() throws IOExceptionRead a single character. -
readtop
public int read(char[] cbuf, int off, int len) throws IOExceptionRead characters into a portion of an array. -
readytop
public boolean ready() throws IOExceptionTell whether this stream is ready to be read. -
resettop
public void reset() throws IOExceptionReset the stream. -
skiptop
public long skip(long n) throws IOExceptionSkip characters.
Fields
-
in
protected Reader inThe underlying character-input stream.
