public class LookupTranslator extends CharSequenceTranslator
Constructor | Description |
---|---|
LookupTranslator(CharSequence[]... lookup) |
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 | Description |
---|---|---|
int |
translate(CharSequence input,
int index,
Writer out) |
Translate a set of codepoints, represented by an int index into a CharSequence,
into another set of codepoints.
|
hex, translate, translate, with
public LookupTranslator(CharSequence[]... lookup)
lookup
- CharSequence[][] table of size [*][2]public int translate(CharSequence input, int index, Writer out) throws IOException
translate
in class CharSequenceTranslator
input
- CharSequence that is being translatedindex
- int representing the current point of translationout
- Writer to translate the text toIOException
- if and only if the Writer produces an IOExceptionCopyright © 2001–2018. All rights reserved.