Closeable, AutoCloseable, Readablepublic class MappingCharFilter extends BaseCharFilter
CharFilter that applies the mappings
contained in a NormalizeCharMap to the character
stream, and correcting the resulting changes to the
offsets.input| Constructor | Description |
|---|---|
MappingCharFilter(NormalizeCharMap normMap,
Reader in) |
Easy-use constructor that takes a
Reader. |
MappingCharFilter(NormalizeCharMap normMap,
CharStream in) |
Default constructor that takes a
CharStream. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
read() |
|
int |
read(char[] cbuf,
int off,
int len) |
addOffCorrectMap, correct, getLastCumulativeDiffclose, correctOffset, mark, markSupported, resetpublic MappingCharFilter(NormalizeCharMap normMap, CharStream in)
CharStream.public MappingCharFilter(NormalizeCharMap normMap, Reader in)
Reader.public int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class CharFilterIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.