FileDocCategorySizeDatePackage
FilterReader.javaAPI DocJava SE 5 API2541Fri Aug 26 14:57:00 BST 2005java.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.17, 03/12/19
author
Mark Reinhold
since
JDK1.1

Fields Summary
protected Reader
in
The underlying character-input stream.
Constructors Summary
protected FilterReader(Reader in)
Create 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()
Close the stream.

exception
IOException If an I/O error occurs

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

exception
IOException If an I/O error occurs

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

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

exception
IOException If an I/O error occurs

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

exception
IOException If an I/O error occurs

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

exception
IOException If an I/O error occurs

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

exception
IOException If an I/O error occurs

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

exception
IOException If an I/O error occurs

	return in.skip(n);