public abstract class AbstractCharacterFilterReader extends FilterReader
Modifier and Type | Field and Description |
---|---|
protected static IntPredicate |
SKIP_NONE
Skips nothing.
|
in
Modifier | Constructor and Description |
---|---|
protected |
AbstractCharacterFilterReader(Reader reader)
Constructs a new reader.
|
protected |
AbstractCharacterFilterReader(Reader reader,
IntPredicate skip)
Constructs a new reader.
|
Modifier and Type | Method and Description |
---|---|
protected 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 static final IntPredicate SKIP_NONE
protected AbstractCharacterFilterReader(Reader reader)
reader
- the reader to filterprotected AbstractCharacterFilterReader(Reader reader, IntPredicate skip)
reader
- the reader to filter.skip
- Skip test.protected boolean filter(int ch)
ch
- the character to test.public int read() throws IOException
read
in class FilterReader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class FilterReader
IOException
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.