FilterReader

public abstract class FilterReader extends Reader
Known Direct Subclasses

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.

Field Summary

protected Reader in The underlying character-input stream.

Inherited Field Summary

Protected Constructor Summary

FilterReader(Reader in)
Creates a new filtered reader.

Public Method Summary

void
close()
Closes the stream and releases any system resources associated with it.
void
mark(int readAheadLimit)
Marks the present position in the stream.
boolean
markSupported()
Tells whether this stream supports the mark() operation.
int
read()
Reads a single character.
int
read(char[] cbuf, int off, int len)
Reads characters into a portion of an array.
boolean
ready()
Tells whether this stream is ready to be read.
void
reset()
Resets the stream.
long
skip(long n)
Skips characters.

Inherited Method Summary

Fields

protected Reader in

The underlying character-input stream.

Protected Constructors

protected FilterReader (