@Deprecated public class NumericEntityEscaper extends CodePointTranslator
Constructor and Description |
---|
NumericEntityEscaper()
Deprecated.
Constructs a
NumericEntityEscaper for all characters. |
Modifier and Type | Method and Description |
---|---|
static NumericEntityEscaper |
above(int codepoint)
Deprecated.
Constructs a
NumericEntityEscaper above the specified value (exclusive). |
static NumericEntityEscaper |
below(int codepoint)
Deprecated.
Constructs a
NumericEntityEscaper below the specified value (exclusive). |
static NumericEntityEscaper |
between(int codepointLow,
int codepointHigh)
Deprecated.
Constructs a
NumericEntityEscaper between the specified values (inclusive). |
static NumericEntityEscaper |
outsideOf(int codepointLow,
int codepointHigh)
Deprecated.
Constructs a
NumericEntityEscaper outside of the specified values (exclusive). |
boolean |
translate(int codepoint,
Writer out)
Deprecated.
Translate the specified codepoint into another.
|
translate
hex, translate, translate, with
public NumericEntityEscaper()
Constructs a NumericEntityEscaper
for all characters.
public static NumericEntityEscaper below(int codepoint)
Constructs a NumericEntityEscaper
below the specified value (exclusive).
codepoint
- below which to escapeNumericEntityEscaper
instancepublic static NumericEntityEscaper above(int codepoint)
Constructs a NumericEntityEscaper
above the specified value (exclusive).
codepoint
- above which to escapeNumericEntityEscaper
instancepublic static NumericEntityEscaper between(int codepointLow, int codepointHigh)
Constructs a NumericEntityEscaper
between the specified values (inclusive).
codepointLow
- above which to escapecodepointHigh
- below which to escapeNumericEntityEscaper
instancepublic static NumericEntityEscaper outsideOf(int codepointLow, int codepointHigh)
Constructs a NumericEntityEscaper
outside of the specified values (exclusive).
codepointLow
- below which to escapecodepointHigh
- above which to escapeNumericEntityEscaper
instancepublic boolean translate(int codepoint, Writer out) throws IOException
translate
in class CodePointTranslator
codepoint
- int character input to translateout
- Writer to optionally push the translated output toIOException
- if and only if the Writer produces an IOExceptionCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.