public class SingleLookupTranslator extends CharSequenceTranslator
Constructor and Description |
---|
SingleLookupTranslator(String[][]... inputArrays)
Define the look tables to be used in translation.
|
Modifier and Type | Method and 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 SingleLookupTranslator(String[][]... inputArrays)
inputArrays,
- an array of string arrays.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 © 2014–2017 The Apache Software Foundation. All rights reserved.