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, skipprotected AbstractCharacterFilterReader(Reader reader)
reader - the reader to filterpublic int read() throws IOException
read in class FilterReaderIOExceptionprotected abstract boolean filter(int ch)
ch - the character to test.public int read(char[] cbuf, int off, int len) throws IOException
read in class FilterReaderIOExceptionCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.