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,
java.io.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, java.io.Reader in)
Reader.public void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.