Package org.glassfish.grizzly.websockets
Class StrictUtf8.Parser
java.lang.Object
org.glassfish.grizzly.websockets.StrictUtf8.Parser
- Enclosing class:
- StrictUtf8
Surrogate parsing support. Charset implementations may use instances of
this class to handle the details of parsing UTF-16 surrogate pairs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerror()If the previous parse operation detected an error, return the object describing that error.intparse(char c, char[] ia, int ip, int il) Parses a UCS-4 character from the given source buffer, handling surrogates.intparse(char c, CharBuffer in) Parses a UCS-4 character from the given source buffer, handling surrogates.
-
Constructor Details
-
Parser
public Parser()
-
-
Method Details
-
error
If the previous parse operation detected an error, return the object describing that error. -
parse
Parses a UCS-4 character from the given source buffer, handling surrogates.- Parameters:
c- The first characterin- The source buffer, from which one more character will be consumed if c is a high surrogate
-
parse
public int parse(char c, char[] ia, int ip, int il) Parses a UCS-4 character from the given source buffer, handling surrogates.- Parameters:
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
-