public class OctalUnescaper extends CharSequenceTranslator
For example, "\45" should go back to being the specific value (a %).
Note that this currently only supports the viable range of octal for Java; namely 1 to 377. This is because parsing Java is the main use case.
| Constructor and Description |
|---|
OctalUnescaper() |
| Modifier and Type | Method and Description |
|---|---|
int |
translate(CharSequence input,
int index,
Writer out)
Translate a set of codepoints, represented by an int index into a CharSequence,
into another set of codepoints.
|
hex, translate, translate, withpublic int translate(CharSequence input, int index, Writer out) throws IOException
CharSequenceTranslatortranslate in class CharSequenceTranslatorinput - CharSequence that is being translatedindex - int representing the current point of translationout - Writer to translate the text toIOException - if and only if the Writer produces an IOExceptionCopyright © 2019. All rights reserved.