FilterReader

public abstract class FilterReader
extends Reader

java.lang.Object
   ↳ java.io.Reader
     ↳ java.io.FilterReader


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.

Summary

Fields

protected Reader in

The underlying character-input stream.

Inherited fields

Protected constructors

FilterReader(Reader in)

Creates a new filtered reader.

Public methods

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 methods