|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.lang3.text.translate.CharSequenceTranslator
org.apache.commons.lang3.text.translate.CodePointTranslator
org.apache.commons.lang3.text.translate.NumericEntityEscaper
public class NumericEntityEscaper
Translates codepoints to their XML numeric entity escaped value.
| Constructor Summary | |
|---|---|
NumericEntityEscaper()
Constructs a NumericEntityEscaper for all characters. |
|
| Method Summary | |
|---|---|
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 out)
Translate the specified codepoint into another. |
| Methods inherited from class org.apache.commons.lang3.text.translate.CodePointTranslator |
|---|
translate |
| Methods inherited from class org.apache.commons.lang3.text.translate.CharSequenceTranslator |
|---|
hex, translate, translate, with |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumericEntityEscaper()
Constructs a NumericEntityEscaper for all characters.
| Method Detail |
|---|
public static NumericEntityEscaper below(int codepoint)
Constructs a NumericEntityEscaper below the specified value (exclusive).
codepoint - below which to escape
NumericEntityEscaper instancepublic static NumericEntityEscaper above(int codepoint)
Constructs a NumericEntityEscaper above the specified value (exclusive).
codepoint - above which to escape
NumericEntityEscaper instance
public static NumericEntityEscaper between(int codepointLow,
int codepointHigh)
Constructs a NumericEntityEscaper between the specified values (inclusive).
codepointLow - above which to escapecodepointHigh - below which to escape
NumericEntityEscaper instance
public static NumericEntityEscaper outsideOf(int codepointLow,
int codepointHigh)
Constructs a NumericEntityEscaper outside of the specified values (exclusive).
codepointLow - below which to escapecodepointHigh - above which to escape
NumericEntityEscaper instance
public boolean translate(int codepoint,
Writer out)
throws IOException
translate in class CodePointTranslatorcodepoint - int character input to translateout - Writer to optionally push the translated output to
IOException - if and only if the Writer produces an IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||