public class CharacterFilterReader extends AbstractCharacterFilterReader
int
code point, handy to remove
known junk characters from CSV files for example. This class is the most efficient way to filter out a single
character, as opposed to using a CharacterSetFilterReader
. You can also nest CharacterFilterReader
s.SKIP_NONE
in
Constructor and Description |
---|
CharacterFilterReader(Reader reader,
int skip)
Constructs a new reader.
|
CharacterFilterReader(Reader reader,
IntPredicate skip)
Constructs a new reader.
|
filter, read, read
close, mark, markSupported, ready, reset, skip
public CharacterFilterReader(Reader reader, int skip)
reader
- the reader to filter.skip
- the character to filter out.public CharacterFilterReader(Reader reader, IntPredicate skip)
reader
- the reader to filter.skip
- Skip test.Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.