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, getLastCumulativeDiff
close, correctOffset
public MappingCharFilter(NormalizeCharMap normMap, Reader in)
Reader
.public void reset() throws IOException
reset
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.