Deprecated
As of 3.6, use Apache Commons Text CharSequenceTranslator.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public final String | Returns: String output of translation.CharSequence to be translated. input)Helper for non-Writer usage. |
| public abstract int | Returns: int count of code points consumed.CharSequence that is being translated. input, int int representing the current point of translation. index, Writer Writer to translate the text to. out)Translate a set of code points, represented by an int index into a CharSequence, into another set of code points. |
| public final void | translate(final CharSequence
CharSequence that is being translated. input, final Writer Writer to translate the text to. writer)Translate an input onto a Writer. |
| public final CharSequenceTranslator | Returns: CharSequenceTranslator merging this translator with the others.CharSequenceTranslator array of translators to merge with this one. translators)
References Deprecated
CharSequenceTranslator is deprecated or references (maybe indirectly) at least one deprecated element.
Helper method to create a merger of this translator with another set of translators. |
| HEX_DIGITS | back to summary |
|---|---|
| pack-priv static final char[] HEX_DIGITS | |
| CharSequenceTranslator | back to summary |
|---|---|
| public CharSequenceTranslator() Constructs a new instance. | |
| hex | back to summary |
|---|---|
| public static String hex(final int codePoint) Returns an upper case hexadecimal | |
| translate | back to summary |
|---|---|
| public final String translate(final CharSequence input) Helper for non-Writer usage.
| |
| translate | back to summary |
|---|---|
| public abstract int translate(CharSequence input, int index, Writer out) throws IOException Translate a set of code points, represented by an int index into a CharSequence, into another set of code points. The number of code points consumed must be returned, and the only IOExceptions thrown must be from interacting with the Writer so that the top level API may reliably ignore StringWriter IOExceptions.
| |
| translate | back to summary |
|---|---|
| public final void translate(final CharSequence input, final Writer writer) throws IOException Translate an input onto a Writer. This is intentionally final as its algorithm is tightly coupled with the abstract method of this class.
| |
| with | back to summary |
|---|---|
| public final CharSequenceTranslator with(final CharSequenceTranslator... translators)
References Deprecated
See corresponding docs for further information. Helper method to create a merger of this translator with another set of translators. Useful in customizing the standard functionality.
| |