@Deprecated public class LookupTranslator extends CharSequenceTranslator
| Modifier and Type | Field and Description |
|---|---|
private int |
longest
Deprecated.
|
private java.util.HashMap<java.lang.String,java.lang.String> |
lookupMap
Deprecated.
|
private java.util.HashSet<java.lang.Character> |
prefixSet
Deprecated.
|
private int |
shortest
Deprecated.
|
HEX_DIGITS| Constructor and Description |
|---|
LookupTranslator(java.lang.CharSequence[]... lookup)
Deprecated.
Define the lookup table to be used in translation
Note that, as of Lang 3.1, the key to the lookup table is converted to a
java.lang.String.
|
| Modifier and Type | Method and Description |
|---|---|
int |
translate(java.lang.CharSequence input,
int index,
java.io.Writer out)
Deprecated.
Translate a set of codepoints, represented by an int index into a CharSequence,
into another set of codepoints.
|
hex, translate, translate, withprivate final java.util.HashMap<java.lang.String,java.lang.String> lookupMap
private final java.util.HashSet<java.lang.Character> prefixSet
private final int shortest
private final int longest
public LookupTranslator(java.lang.CharSequence[]... lookup)
lookup - CharSequence[][] table of size [*][2]public int translate(java.lang.CharSequence input,
int index,
java.io.Writer out)
throws java.io.IOException
translate in class CharSequenceTranslatorinput - CharSequence that is being translatedindex - int representing the current point of translationout - Writer to translate the text tojava.io.IOException - if and only if the Writer produces an IOException