public abstract class AbstractCharacterFilterReader extends FilterReader
in
Modifier | Constructor and Description |
---|---|
protected |
AbstractCharacterFilterReader(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) |
close, mark, markSupported, ready, reset, skip
protected AbstractCharacterFilterReader(Reader reader)
reader
- the reader to filterpublic int read() throws IOException
read
in class FilterReader
IOException
protected abstract boolean filter(int ch)
ch
- the character to test.public int read(char[] cbuf, int off, int len) throws IOException
read
in class FilterReader
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.