public class NumericEscaper extends CodePointTranslator
| Constructor and Description |
|---|
NumericEscaper()
Constructs a
NumericEscaper for all characters. |
| Modifier and Type | Method and Description |
|---|---|
static NumericEscaper |
above(int codepoint)
Constructs a
NumericEscaper above the specified value (exclusive). |
static NumericEscaper |
below(int codepoint)
Constructs a
NumericEscaper below the specified value (exclusive). |
static NumericEscaper |
between(int codepointLow,
int codepointHigh)
Constructs a
NumericEscaper between the specified values (inclusive). |
static NumericEscaper |
outsideOf(int codepointLow,
int codepointHigh)
Constructs a
NumericEscaper outside of the specified values (exclusive). |
boolean |
translate(int codepoint,
Writer out)
Translate the specified codepoint into another.
|
translatehex, translate, translate, withpublic NumericEscaper()
Constructs a NumericEscaper for all characters.
public static NumericEscaper below(int codepoint)
Constructs a NumericEscaper below the specified value (exclusive).
codepoint - below which to escapeNumericEscaper instancepublic static NumericEscaper above(int codepoint)
Constructs a NumericEscaper above the specified value (exclusive).
codepoint - above which to escapeNumericEscaper instancepublic static NumericEscaper between(int codepointLow, int codepointHigh)
Constructs a NumericEscaper between the specified values (inclusive).
codepointLow - above which to escapecodepointHigh - below which to escapeNumericEscaper instancepublic static NumericEscaper outsideOf(int codepointLow, int codepointHigh)
Constructs a NumericEscaper outside of the specified values (exclusive).
codepointLow - below which to escapecodepointHigh - above which to escapeNumericEscaper instancepublic boolean translate(int codepoint,
Writer out)
throws IOException
CodePointTranslatortranslate in class CodePointTranslatorcodepoint - int character input to translateout - Writer to optionally push the translated output toIOException - if and only if the Writer produces an IOExceptionCopyright © 2019. All rights reserved.