|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.lang3.text.translate.CharSequenceTranslator org.apache.commons.lang3.text.translate.CodePointTranslator org.apache.commons.lang3.text.translate.UnicodeEscaper
public class UnicodeEscaper
Translates codepoints to their unicode escaped value.
Constructor Summary | |
---|---|
UnicodeEscaper()
Constructs a UnicodeEscaper for all characters. |
Method Summary | |
---|---|
static UnicodeEscaper |
above(int codepoint)
Constructs a UnicodeEscaper above the specified value (exclusive). |
static UnicodeEscaper |
below(int codepoint)
Constructs a UnicodeEscaper below the specified value (exclusive). |
static UnicodeEscaper |
between(int codepointLow,
int codepointHigh)
Constructs a UnicodeEscaper between the specified values (inclusive). |
static UnicodeEscaper |
outsideOf(int codepointLow,
int codepointHigh)
Constructs a UnicodeEscaper 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 UnicodeEscaper()
Constructs a UnicodeEscaper
for all characters.
Method Detail |
---|
public static UnicodeEscaper below(int codepoint)
Constructs a UnicodeEscaper
below the specified value (exclusive).
codepoint
- below which to escape
UnicodeEscaper
instancepublic static UnicodeEscaper above(int codepoint)
Constructs a UnicodeEscaper
above the specified value (exclusive).
codepoint
- above which to escape
UnicodeEscaper
instancepublic static UnicodeEscaper outsideOf(int codepointLow, int codepointHigh)
Constructs a UnicodeEscaper
outside of the specified values (exclusive).
codepointLow
- below which to escapecodepointHigh
- above which to escape
UnicodeEscaper
instancepublic static UnicodeEscaper between(int codepointLow, int codepointHigh)
Constructs a UnicodeEscaper
between the specified values (inclusive).
codepointLow
- above which to escapecodepointHigh
- below which to escape
UnicodeEscaper
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 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 |