public class OctalUnescaper extends CharSequenceTranslator
HEX_DIGITS
Constructor and Description |
---|
OctalUnescaper() |
Modifier and Type | Method and Description |
---|---|
private boolean |
isOctalDigit(char ch)
Checks if the given char is an octal digit.
|
private boolean |
isZeroToThree(char ch)
Checks if the given char is the character representation of one of the digit from 0 to 3.
|
int |
translate(java.lang.CharSequence input,
int index,
java.io.Writer out)
Translate a set of codepoints, represented by an int index into a CharSequence,
into another set of codepoints.
|
hex, translate, translate, with
public int translate(java.lang.CharSequence input, int index, java.io.Writer out) throws java.io.IOException
translate
in class CharSequenceTranslator
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 IOExceptionprivate boolean isOctalDigit(char ch)
ch
- the char to checkprivate boolean isZeroToThree(char ch)
ch
- the char to check