final class ByteOptimizedUTF8Encoder extends OptimizedUTF8Encoder
String objects are backed by
byte[].| Modifier and Type | Field and Description |
|---|---|
private static java.nio.charset.Charset |
ASCII_CHARSET |
UTF_8_CHARSET| Constructor and Description |
|---|
ByteOptimizedUTF8Encoder() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decode(byte[] encodedString,
int offset,
int length)
Decode an array of bytes into a string.
|
private java.lang.String |
slowDecode(byte[] encodedString,
int offset,
int length,
int curIdx)
Decodes to
char[] in presence of non-ascii values after first copying all known ascii chars directly
from byte[] to char[]. |
charDecode, decodeToChars, getCharArraydecode, defaultEncoding, encode, getDatabaseEncoding, getDecodingReader, getEncodingWriter, getJVMEncoding, hasAsciiNumbers, name, toStringpublic java.lang.String decode(byte[] encodedString,
int offset,
int length)
throws java.io.IOException
decode in class EncodingencodedString - a byte array containing the string to decodeoffset - the offset in encodedString of the first byte of the encoded
representationlength - the length, in bytes, of the encoded representationjava.io.IOException - if something goes wrongprivate java.lang.String slowDecode(byte[] encodedString,
int offset,
int length,
int curIdx)
throws java.io.IOException
char[] in presence of non-ascii values after first copying all known ascii chars directly
from byte[] to char[].java.io.IOException