public static class NormalizeCharMap.Builder extends Object
Call add() until you have added all the mappings, then call build() to get a NormalizeCharMap
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
void |
add(String match,
String replacement)
Records a replacement to be applied to the input
stream.
|
NormalizeCharMap |
build()
Builds the NormalizeCharMap; call this once you
are done calling
add(java.lang.String, java.lang.String) . |
public void add(String match, String replacement)
singleMatch
occurs in
the input, it will be replaced with
replacement
.match
- input String to be replacedreplacement
- output StringIllegalArgumentException
- if
match
is the empty string, or was
already previously addedpublic NormalizeCharMap build()
add(java.lang.String, java.lang.String)
.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.