public class NumericEntityEscaper extends CodePointTranslator
| Constructor and Description |
|---|
NumericEntityEscaper()
Constructs a
NumericEntityEscaper for all characters. |
| Modifier and Type | Method and Description |
|---|---|
static NumericEntityEscaper |
above(int codePoint)
Constructs a
NumericEntityEscaper above the specified value (exclusive). |
static NumericEntityEscaper |
below(int codePoint)
Constructs a
NumericEntityEscaper below the specified value (exclusive). |
static NumericEntityEscaper |
between(int codePointLow,
int codePointHigh)
Constructs a
NumericEntityEscaper between the specified values (inclusive). |
static NumericEntityEscaper |
outsideOf(int codePointLow,
int codePointHigh)
Constructs a
NumericEntityEscaper outside of the specified values (exclusive). |
boolean |
translate(int codePoint,
Writer writer)
Translates the specified code point into another.
|
translatehex, translate, translate, withpublic NumericEntityEscaper()
NumericEntityEscaper for all characters.public static NumericEntityEscaper above(int codePoint)
NumericEntityEscaper above the specified value (exclusive).codePoint - above which to escapeNumericEntityEscaper instancepublic static NumericEntityEscaper below(int codePoint)
NumericEntityEscaper below the specified value (exclusive).codePoint - below which to escapeNumericEntityEscaper instancepublic static NumericEntityEscaper between(int codePointLow, int codePointHigh)
NumericEntityEscaper between the specified values (inclusive).codePointLow - above which to escapecodePointHigh - below which to escapeNumericEntityEscaper instancepublic static NumericEntityEscaper outsideOf(int codePointLow, int codePointHigh)
NumericEntityEscaper outside of the specified values (exclusive).codePointLow - below which to escapecodePointHigh - above which to escapeNumericEntityEscaper instancepublic boolean translate(int codePoint, Writer writer) throws IOException
translate in class CodePointTranslatorcodePoint - int character input to translatewriter - Writer to optionally push the translated output toIOException - if and only if the Writer produces an IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.