| Modifier and Type | Field and Description |
|---|---|
| private static final CodingErrorAction | |
| private static final int[] | utf8d
Implementation of the "Flexible and Economical UTF-8 Decoder" algorithm by Björn Höhrmann (http://bjoern.hoehrmann.de/utf-8/decoder/dfa/) |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static boolean | Returns: does the ByteBuffer contain a valid utf8 encoded stringthe ByteBuffer data, int offset (for performance reasons) off)Check if the provided BytebBuffer contains a valid utf8 encoded string. |
| public static boolean | Returns: does the ByteBuffer contain a valid utf8 encoded stringthe ByteBuffer data)Calling isValidUTF8 with offset 0 |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static byte[] |
| codingErrorAction | back to summary |
|---|---|
| private static final CodingErrorAction codingErrorAction | |
| utf8d | back to summary |
|---|---|
| private static final int[] utf8d Implementation of the "Flexible and Economical UTF-8 Decoder" algorithm by Björn Höhrmann (http://bjoern.hoehrmann.de/utf-8/decoder/dfa/) | |
| Charsetfunctions | back to summary |
|---|---|
| private Charsetfunctions() Private constructor for real static class | |
| asciiBytes | back to summary |
|---|---|
| public static byte[] asciiBytes(String s) | |
| isValidUTF8 | back to summary |
|---|---|
| public static boolean isValidUTF8(ByteBuffer data, int off) Check if the provided BytebBuffer contains a valid utf8 encoded string. Using the algorithm "Flexible and Economical UTF-8 Decoder" by Björn Höhrmann (http://bjoern.hoehrmann.de/utf-8/decoder/dfa/)
| |
| isValidUTF8 | back to summary |
|---|---|
| public static boolean isValidUTF8(ByteBuffer data) Calling isValidUTF8 with offset 0
| |
| stringAscii | back to summary |
|---|---|
| public static String stringAscii(byte[] bytes) | |
| stringAscii | back to summary |
|---|---|
| public static String stringAscii(byte[] bytes, int offset, int length) | |
| stringUtf8 | back to summary |
|---|---|
| public static String stringUtf8(byte[] bytes) throws InvalidDataException | |
| stringUtf8 | back to summary |
|---|---|
| public static String stringUtf8(ByteBuffer bytes) throws InvalidDataException | |
| utf8Bytes | back to summary |
|---|---|
| public static byte[] utf8Bytes(String s) | |