| Modifier and Type | Class and Description |
|---|---|
| public static class | Surrogate.
Surrogate generation support. |
| public static class | Surrogate.
Surrogate parsing support. |
| Modifier and Type | Field and Description |
|---|---|
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static char | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static char | |
| public static boolean | neededFor(int uc)
Tells whether or not the given UCS-4 character must be represented as a surrogate pair in UTF-16. |
| public static int |
| MAX | back to summary |
|---|---|
| public static final char MAX | |
| MAX_HIGH | back to summary |
|---|---|
| public static final char MAX_HIGH | |
| MAX_LOW | back to summary |
|---|---|
| public static final char MAX_LOW | |
| MIN | back to summary |
|---|---|
| public static final char MIN | |
| MIN_HIGH | back to summary |
|---|---|
| public static final char MIN_HIGH | |
| MIN_LOW | back to summary |
|---|---|
| public static final char MIN_LOW | |
| UCS4_MAX | back to summary |
|---|---|
| public static final int UCS4_MAX | |
| UCS4_MIN | back to summary |
|---|---|
| public static final int UCS4_MIN | |
| Surrogate | back to summary |
|---|---|
| private Surrogate() | |
| high | back to summary |
|---|---|
| public static char high(int uc) Returns the high UTF-16 surrogate for the given supplementary UCS-4 character.
Use of | |
| is | back to summary |
|---|---|
| public static boolean is(int c) Tells whether or not the given value is in the surrogate range.
Use of | |
| isHigh | back to summary |
|---|---|
| public static boolean isHigh(int c) Tells whether or not the given value is in the high surrogate range.
Use of | |
| isLow | back to summary |
|---|---|
| public static boolean isLow(int c) Tells whether or not the given value is in the low surrogate range.
Use of | |
| low | back to summary |
|---|---|
| public static char low(int uc) Returns the low UTF-16 surrogate for the given supplementary UCS-4 character.
Use of | |
| neededFor | back to summary |
|---|---|
| public static boolean neededFor(int uc) Tells whether or not the given UCS-4 character must be represented as a
surrogate pair in UTF-16.
Use of | |
| toUCS4 | back to summary |
|---|---|
| public static int toUCS4(char c, char d) Converts the given surrogate pair into a 32-bit UCS-4 character.
Use of | |
| Modifier and Type | Field and Description |
|---|---|
| private CoderResult |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CoderResult | error()
If the previous generation operation detected an error, return the object describing that error. |
| public int | Returns: Either a positive count of the number of UTF-16 characters written to the destination buffer, or -1, in which case error() will return a descriptive result objectThe UCS-4 character uc, int The number of input bytes from which the UCS-4 value
was constructed (used when creating result objects) len, CharBuffer The destination buffer, to which one or two UTF-16
characters will be written dst)Generates one or two UTF-16 characters to represent the given UCS-4 character. |
| public int | Returns: Either a positive count of the number of UTF-16 characters written to the destination buffer, or -1, in which case error() will return a descriptive result objectThe UCS-4 character uc, int The number of input bytes from which the UCS-4 value
was constructed (used when creating result objects) len, char[] The destination array, to which one or two UTF-16
characters will be written da, int The destination position dp, int The destination limit dl)Generates one or two UTF-16 characters to represent the given UCS-4 character. |
| error | back to summary |
|---|---|
| private CoderResult error | |
| Generator | back to summary |
|---|---|
| public Generator() | |
| error | back to summary |
|---|---|
| public CoderResult error() If the previous generation operation detected an error, return the object describing that error. | |
| generate | back to summary |
|---|---|
| public int generate(int uc, int len, CharBuffer dst) Generates one or two UTF-16 characters to represent the given UCS-4 character.
| |
| generate | back to summary |
|---|---|
| public int generate(int uc, int len, char[] da, int dp, int dl) Generates one or two UTF-16 characters to represent the given UCS-4 character.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private CoderResult | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public CoderResult | |
| public int | |
| public boolean | isPair()
Tells whether or not the previously-parsed UCS-4 character was originally represented by a surrogate pair. |
| public int | Returns: Either a parsed UCS-4 character, in which case the isPair() and increment() methods will return meaningful values, or -1, in which case error() will return a descriptive result objectThe first character c, CharBuffer The source buffer, from which one more character
will be consumed if c is a high surrogate in)Parses a UCS-4 character from the given source buffer, handling surrogates. |
| public int | Returns: Either a parsed UCS-4 character, in which case the isPair() and increment() methods will return meaningful values, or -1, in which case error() will return a descriptive result objectThe first character c, char[] The input array, from which one more character
will be consumed if c is a high surrogate ia, int The input index ip, int The input limit il)Parses a UCS-4 character from the given source buffer, handling surrogates. |
| public CoderResult | unmappableResult()
Returns an unmappable-input result object, with the appropriate input length, for the previously-parsed character. |
| character | back to summary |
|---|---|
| private int character | |
| error | back to summary |
|---|---|
| private CoderResult error | |
| isPair | back to summary |
|---|---|
| private boolean isPair | |
| Parser | back to summary |
|---|---|
| public Parser() | |
| character | back to summary |
|---|---|
| public int character() Returns the UCS-4 character previously parsed. | |
| error | back to summary |
|---|---|
| public CoderResult error() If the previous parse operation detected an error, return the object describing that error. | |
| increment | back to summary |
|---|---|
| public int increment() Returns the number of UTF-16 characters consumed by the previous parse. | |
| isPair | back to summary |
|---|---|
| public boolean isPair() Tells whether or not the previously-parsed UCS-4 character was originally represented by a surrogate pair. | |
| parse | back to summary |
|---|---|
| public int parse(char c, CharBuffer in) Parses a UCS-4 character from the given source buffer, handling surrogates.
| |
| parse | back to summary |
|---|---|
| public int parse(char c, char[] ia, int ip, int il) Parses a UCS-4 character from the given source buffer, handling surrogates.
| |
| unmappableResult | back to summary |
|---|---|
| public CoderResult unmappableResult() Returns an unmappable-input result object, with the appropriate input length, for the previously-parsed character. | |