org.apache.lucene.analysis
Class NormalizeCharMap
java.lang.Object
org.apache.lucene.analysis.NormalizeCharMap
public class NormalizeCharMap
- extends Object
Holds a map of String input to String output, to be used
with MappingCharFilter
.
Method Summary |
void |
add(String singleMatch,
String replacement)
Records a replacement to be applied to the inputs
stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NormalizeCharMap
public NormalizeCharMap()
add
public void add(String singleMatch,
String replacement)
- Records a replacement to be applied to the inputs
stream. Whenever
singleMatch
occurs in
the input, it will be replaced with
replacement
.
- Parameters:
singleMatch
- input String to be replacedreplacement
- output String