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)Creates a new filtered reader. -
closetop
public void close() throws IOExceptionCloses this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. -
marktop
public void mark(int readAheadLimit) throws IOExceptionMarks the present position in the stream. -
markSupportedtop
public boolean markSupported()Tells whether this stream supports the mark() operation.- Override hierarchy:
- markSupported from Reader
-
readtop
public int read() throws IOExceptionReads a single character. -
readtop
public int read(char[] cbuf, int off, int len) throws IOExceptionReads characters into a portion of an array. -
readytop
public boolean ready() throws IOExceptionTells whether this stream is ready to be read. -
resettop
public void reset() throws IOExceptionResets the stream. -
skiptop
public long skip(long n) throws IOExceptionSkips characters.
Fields
-
in
protected Reader inThe underlying character-input stream.
