FileDocCategorySizeDatePackage
FilterReader.javaAPI DocJava SE 6 API2446Tue Jun 10 00:25:32 BST 2008java.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.
version
1.19, 05/11/17
author
Mark Reinhold
since
JDK1.1

Fields Summary
protected Reader
in
The underlying character-input stream.
Constructors Summary
protected FilterReader(Reader in)
Creates a new filtered reader.

param
in a Reader object providing the underlying stream.
throws
NullPointerException if in is null

	super(in);
	this.in = in;
    
Methods Summary
public voidclose()

	in.close();
    
public voidmark(int readAheadLimit)
Marks the present position in the stream.

exception
IOException If an I/O error occurs

	in.mark(readAheadLimit);
    
public booleanmarkSupported()
Tells whether this stream supports the mark() operation.

	return in.markSupported();
    
public intread()
Reads a single character.

exception
IOException If an I/O error occurs

	return in.read();
    
public intread(char[] cbuf, int off, int len)
Reads characters into a portion of an array.

exception
IOException If an I/O error occurs

	return in.read(cbuf, off, len);
    
public booleanready()
Tells whether this stream is ready to be read.

exception
IOException If an I/O error occurs

	return in.ready();
    
public voidreset()
Resets the stream.

exception
IOException If an I/O error occurs

	in.reset();
    
public longskip(long n)
Skips characters.

exception
IOException If an I/O error occurs

	return in.skip(n);