org.apache.lucene.analysis
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.input
Constructor and Description |
---|
MappingCharFilter(NormalizeCharMap normMap,
CharStream in)
Default constructor that takes a
CharStream . |
MappingCharFilter(NormalizeCharMap normMap,
java.io.Reader in)
Easy-use constructor that takes a
Reader . |
Modifier and Type | Method and Description |
---|---|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
addOffCorrectMap, correct, getLastCumulativeDiff
close, correctOffset, mark, markSupported, reset
public MappingCharFilter(NormalizeCharMap normMap, CharStream in)
CharStream
.public MappingCharFilter(NormalizeCharMap normMap, java.io.Reader in)
Reader
.public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class CharFilter
java.io.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.