public abstract class CharSequenceTranslator extends Object
Constructor and Description |
---|
CharSequenceTranslator() |
Modifier and Type | Method and Description |
---|---|
static String |
hex(int codepoint)
Returns an upper case hexadecimal
String for the given
character. |
String |
translate(CharSequence input) |
abstract int |
translate(CharSequence input,
int index,
Writer out) |
void |
translate(CharSequence input,
Writer out) |
public abstract int translate(CharSequence input, int index, Writer out) throws IOException
IOException
public final String translate(CharSequence input)
public final void translate(CharSequence input, Writer out) throws IOException
IOException
public static String hex(int codepoint)
Returns an upper case hexadecimal String
for the given
character.
codepoint
- The codepoint to convert.String
Copyright © 2014. All rights reserved.