| Modifier and Type | Field and Description |
|---|---|
| private final int | above
The highest code point boundary. |
| private final int | below
The lowest code point boundary. |
| private final boolean | between
Whether to escape between the boundaries or outside them. |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | UnicodeEscaper(final int
int value representing the lowest code point boundary. below, final int int value representing the highest code point boundary. above, final boolean whether to escape between the boundaries or outside them. between)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public static UnicodeEscaper | Returns: The newly createdUnicodeEscaper instance.above which to escape. codePoint)Constructs a |
| public static UnicodeEscaper | Returns: The newly createdUnicodeEscaper instance.below which to escape. codePoint)Constructs a |
| public static UnicodeEscaper | Returns: The newly createdUnicodeEscaper instance.above which to escape. codePointLow, final int below which to escape. codePointHigh)Constructs a |
| public static UnicodeEscaper | Returns: The newly createdUnicodeEscaper instance.below which to escape. codePointLow, final int above which to escape. codePointHigh)Constructs a |
| protected String | Returns: The hexadecimal string for the given code point.a Unicode code point. codePoint)Converts the given code point to a hexadecimal string of the form |
| public boolean | translate(final int codePoint, final Writer writer)
Implements abstract org. Translates the specified code point into another. |
| above | back to summary |
|---|---|
| private final int above The highest code point boundary. | |
| below | back to summary |
|---|---|
| private final int below The lowest code point boundary. | |
| between | back to summary |
|---|---|
| private final boolean between Whether to escape between the boundaries or outside them. | |
| UnicodeEscaper | back to summary |
|---|---|
| public UnicodeEscaper() Constructs a | |
| UnicodeEscaper | back to summary |
|---|---|
| protected UnicodeEscaper(final int below, final int above, final boolean between) Constructs a
| |
| above | back to summary |
|---|---|
| public static UnicodeEscaper above(final int codePoint) Constructs a
| |
| below | back to summary |
|---|---|
| public static UnicodeEscaper below(final int codePoint) Constructs a
| |
| between | back to summary |
|---|---|
| public static UnicodeEscaper between(final int codePointLow, final int codePointHigh) Constructs a
| |
| outsideOf | back to summary |
|---|---|
| public static UnicodeEscaper outsideOf(final int codePointLow, final int codePointHigh) Constructs a
| |
| toUtf16Escape | back to summary |
|---|---|
| protected String toUtf16Escape(final int codePoint) Converts the given code point to a hexadecimal string of the form
| |
| translate | back to summary |
|---|---|
| public boolean translate(final int codePoint, final Writer writer) throws IOException Implements abstract org. Doc from org. Translates the specified code point into another.
| |