Package org.apache.commons.io.input
Class AbstractCharacterFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.commons.io.input.AbstractCharacterFilterReader
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Readable
- Direct Known Subclasses:
- CharacterFilterReader,- CharacterSetFilterReader
A filter reader that filters out characters where subclasses decide which characters to filter out.
- 
Field SummaryFieldsFields inherited from class java.io.FilterReaderin
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractCharacterFilterReader(Reader reader) Constructs a new reader.protectedAbstractCharacterFilterReader(Reader reader, IntPredicate skip) Constructs a new reader.
- 
Method SummaryMethods inherited from class java.io.FilterReaderclose, mark, markSupported, ready, reset, skip
- 
Field Details- 
SKIP_NONESkips nothing.- Since:
- 2.9.0
 
 
- 
- 
Constructor Details- 
AbstractCharacterFilterReaderConstructs a new reader.- Parameters:
- reader- the reader to filter
 
- 
AbstractCharacterFilterReaderConstructs a new reader.- Parameters:
- reader- the reader to filter.
- skip- Skip test.
- Since:
- 2.9.0
 
 
- 
- 
Method Details- 
filterReturns true if the given character should be filtered out, false to keep the character.- Parameters:
- ch- the character to test.
- Returns:
- true if the given character should be filtered out, false to keep the character.
 
- 
read- Overrides:
- readin class- FilterReader
- Throws:
- IOException
 
- 
read- Overrides:
- readin class- FilterReader
- Throws:
- IOException
 
 
-