public class AggregateTranslator extends CharSequenceTranslator
| Constructor and Description |
|---|
AggregateTranslator(CharSequenceTranslator... translators)
Specify the translators to be used at creation time.
|
| Modifier and Type | Method and Description |
|---|---|
int |
translate(CharSequence input,
int index,
Writer writer)
The first translator to consume code points from the input is the 'winner'.
|
hex, translate, translate, withpublic AggregateTranslator(CharSequenceTranslator... translators)
translators - CharSequenceTranslator array to aggregatepublic int translate(CharSequence input, int index, Writer writer) throws IOException
translate in class CharSequenceTranslatorinput - CharSequence that is being translatedindex - int representing the current point of translationwriter - Writer to translate the text toIOException - if and only if the Writer produces an IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.