public 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. Matching is greedy (longest pattern matching at
a given point wins). Replacement is allowed to be the
empty string.input| Constructor and Description |
|---|
MappingCharFilter(NormalizeCharMap normMap,
Reader in)
Default constructor that takes a
Reader. |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
void |
reset() |
addOffCorrectMap, correct, getLastCumulativeDiffclose, correctOffsetpublic MappingCharFilter(NormalizeCharMap normMap, Reader in)
Reader.public void reset()
throws IOException
reset in class ReaderIOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.