java.lang.Object | |
↳ | sun.nio.cs.Surrogate.Parser |
Surrogate parsing support. Charset implementations may use instances of this class to handle the details of parsing UTF-16 surrogate pairs.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the UCS-4 character previously parsed.
| |||||||||||
If the previous parse operation detected an error, return the object
describing that error.
| |||||||||||
Returns the number of UTF-16 characters consumed by the previous
parse.
| |||||||||||
Tells whether or not the previously-parsed UCS-4 character was
originally represented by a surrogate pair.
| |||||||||||
Parses a UCS-4 character from the given source buffer, handling
surrogates.
| |||||||||||
Parses a UCS-4 character from the given source buffer, handling
surrogates.
| |||||||||||
Returns an unmappable-input result object, with the appropriate
input length, for the previously-parsed character.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns the UCS-4 character previously parsed.
If the previous parse operation detected an error, return the object describing that error.
Returns the number of UTF-16 characters consumed by the previous parse.
Tells whether or not the previously-parsed UCS-4 character was originally represented by a surrogate pair.
Parses a UCS-4 character from the given source buffer, handling surrogates.
c | The first character |
---|---|
in | The source buffer, from which one more character will be consumed if c is a high surrogate |
Parses a UCS-4 character from the given source buffer, handling surrogates.
c | The first character |
---|---|
ia | The input array, from which one more character will be consumed if c is a high surrogate |
ip | The input index |
il | The input limit |
Returns an unmappable-input result object, with the appropriate input length, for the previously-parsed character.