|
| static void | handleFourBytes (byte byte1, byte byte2, byte byte3, byte byte4, char[] resultArr, int resultPos) throws InvalidProtocolBufferException |
| |
| static void | handleOneByte (byte byte1, char[] resultArr, int resultPos) |
| |
| static void | handleThreeBytes (byte byte1, byte byte2, byte byte3, char[] resultArr, int resultPos) throws InvalidProtocolBufferException |
| |
| static void | handleTwoBytes (byte byte1, byte byte2, char[] resultArr, int resultPos) throws InvalidProtocolBufferException |
| |
| static char | highSurrogate (int codePoint) |
| |
| static boolean | isNotTrailingByte (byte b) |
| |
| static boolean | isOneByte (byte b) |
| |
| static boolean | isThreeBytes (byte b) |
| |
| static boolean | isTwoBytes (byte b) |
| |
| static char | lowSurrogate (int codePoint) |
| |
| static int | trailingByteValue (byte b) |
| |
Utility methods for decoding bytes into String. Callers are responsible for extracting bytes (possibly using Unsafe methods), and checking remaining bytes. All other UTF-8 validity checks and codepoint conversion happen in this class.
Definition at line 1883 of file Utf8.java.