public class LookupTranslator extends CharSequenceTranslator
|Constructor and Description|
Define the lookup table to be used in translation Note that, as of Lang 3.1 (the origin of this code), the key to the lookup table is converted to a java.lang.String.
|Modifier and Type||Method and Description|
Translate a set of codepoints, represented by an int index into a CharSequence, into another set of codepoints.
hex, translate, translate, with
public LookupTranslator(Map<CharSequence,CharSequence> lookupMap)
lookupMap- Map<CharSequence, CharSequence> table of translator mappings
public int translate(CharSequence input, int index, Writer out) throws IOException
input- CharSequence that is being translated
index- int representing the current point of translation
out- Writer to translate the text to
IOException- if and only if the Writer produces an IOException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.