org.apache.commons.io.input
Class CharacterSetFilterReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- org.apache.commons.io.input.AbstractCharacterFilterReader
-
- org.apache.commons.io.input.CharacterSetFilterReader
-
- All Implemented Interfaces:
- Closeable, AutoCloseable, Readable
public class CharacterSetFilterReader extends AbstractCharacterFilterReader
A filter reader that removes a given set of characters represented asint
code points, handy to remove known junk characters from CSV files for example.This class must convert each
int
read to anInteger
. You can increase the Integer cache with a system property, seeInteger
.
-
Field Summary
Fields inherited from class org.apache.commons.io.input.AbstractCharacterFilterReader
SKIP_NONE
Fields inherited from class java.io.FilterReader
in
Constructor Summary
Constructors Constructor and Description CharacterSetFilterReader(Reader reader, Integer... skip)
Constructs a new reader.CharacterSetFilterReader(Reader reader, Set<Integer> skip)
Constructs a new reader.
Method Summary
Methods inherited from class org.apache.commons.io.input.AbstractCharacterFilterReader
filter, read, read
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skip
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.