public abstract class AbstractCharacterFilterReader
extends java.io.FilterReader
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCharacterFilterReader(java.io.Reader reader)
Constructs a new reader.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
filter(int ch)
Returns true if the given character should be filtered out, false to keep the character.
|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
protected AbstractCharacterFilterReader(java.io.Reader reader)
reader - the reader to filterpublic int read()
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOExceptionprotected abstract boolean filter(int ch)
ch - the character to test.public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOException