@Deprecated
public abstract class CharSequenceTranslator
extends java.lang.Object
| Constructor and Description |
|---|
CharSequenceTranslator()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
hex(int codePoint)
Deprecated.
Returns an upper case hexadecimal
String for the given
character. |
java.lang.String |
translate(java.lang.CharSequence input)
Deprecated.
Helper for non-Writer usage.
|
abstract int |
translate(java.lang.CharSequence input,
int index,
java.io.Writer out)
Deprecated.
Translate a set of code points, represented by an int index into a CharSequence,
into another set of code points.
|
void |
translate(java.lang.CharSequence input,
java.io.Writer writer)
Deprecated.
Translate an input onto a Writer.
|
CharSequenceTranslator |
with(CharSequenceTranslator... translators)
Deprecated.
Helper method to create a merger of this translator with another set of
translators.
|
public abstract int translate(java.lang.CharSequence input,
int index,
java.io.Writer out)
throws java.io.IOException
input - 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 IOExceptionpublic final java.lang.String translate(java.lang.CharSequence input)
input - CharSequence to be translatedpublic final void translate(java.lang.CharSequence input,
java.io.Writer writer)
throws java.io.IOException
input - CharSequence that is being translatedwriter - Writer to translate the text tojava.io.IOException - if and only if the Writer produces an IOExceptionpublic final CharSequenceTranslator with(CharSequenceTranslator... translators)
translators - CharSequenceTranslator array of translators to merge with this onepublic static java.lang.String hex(int codePoint)
String for the given
character.codePoint - The code point to convert.StringCopyright © 2010 - 2023 Adobe. All Rights Reserved