|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.websockets.StrictUtf8.Parser
public static class StrictUtf8.Parser
Surrogate parsing support. Charset implementations may use instances of this class to handle the details of parsing UTF-16 surrogate pairs.
| Constructor Summary | |
|---|---|
StrictUtf8.Parser()
|
|
| Method Summary | |
|---|---|
CoderResult |
error()
If the previous parse operation detected an error, return the object describing that error. |
int |
parse(char c,
char[] ia,
int ip,
int il)
Parses a UCS-4 character from the given source buffer, handling surrogates. |
int |
parse(char c,
CharBuffer in)
Parses a UCS-4 character from the given source buffer, handling surrogates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrictUtf8.Parser()
| Method Detail |
|---|
public CoderResult error()
public int parse(char c,
CharBuffer in)
c - The first characterin - The source buffer, from which one more character
will be consumed if c is a high surrogate
public int parse(char c,
char[] ia,
int ip,
int il)
c - The first characteria - The input array, from which one more character
will be consumed if c is a high surrogateip - The input indexil - The input limit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||