public class CharacterSetFilterReader extends AbstractCharacterFilterReader
int code points, handy to remove
known junk characters from CSV files for example.
This class must convert each int read to an Integer. You can increase the Integer cache
with a system property, see Integer.
in| Constructor and Description |
|---|
CharacterSetFilterReader(Reader reader,
Set<Integer> 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.
|
read, readclose, mark, markSupported, ready, reset, skipprotected boolean filter(int ch)
AbstractCharacterFilterReaderfilter in class AbstractCharacterFilterReaderch - the character to test.Copyright © 2023. All rights reserved.