| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final char[] | HEX_DIGITS
Array containing the hexadecimal alphabet. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: An upper case hexadecimalStringThe code point to convert. codePoint)Returns an upper case hexadecimal |
| 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. writer)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)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 Array containing the hexadecimal alphabet. | |
| CharSequenceTranslator | back to summary |
|---|---|
| public CharSequenceTranslator() Construct 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 writer) 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) Helper method to create a merger of this translator with another set of translators. Useful in customizing the standard functionality.
| |