final class StringUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.nio.charset.Charset |
ISO8859_1 |
private static java.nio.charset.Charset |
USASCII |
private static java.nio.charset.Charset |
UTF16 |
private static java.nio.charset.Charset |
UTF16BE |
private static java.nio.charset.Charset |
UTF16LE |
private static java.nio.charset.Charset |
UTF8 |
Modifier | Constructor and Description |
---|---|
private |
StringUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.nio.charset.Charset |
getCharset(ToNativeContext toNativeContext) |
(package private) static java.nio.charset.CharsetDecoder |
getDecoder(java.nio.charset.Charset charset,
java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetDecoder>> localDecoder) |
(package private) static java.nio.charset.CharsetEncoder |
getEncoder(java.nio.charset.Charset charset,
java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetEncoder>> localEncoder) |
private static java.nio.charset.Charset |
getEncodingCharset(java.util.Collection<java.lang.annotation.Annotation> annotations) |
private static java.nio.charset.CharsetDecoder |
initDecoder(java.nio.charset.Charset charset,
java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetDecoder>> localDecoder) |
private static java.nio.charset.CharsetEncoder |
initEncoder(java.nio.charset.Charset charset,
java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetEncoder>> localEncoder) |
(package private) static int |
stringLength(java.nio.ByteBuffer in,
int terminatorWidth) |
(package private) static int |
terminatorWidth(java.nio.charset.Charset charset) |
(package private) static void |
throwException(java.nio.charset.CoderResult result) |
private static final java.nio.charset.Charset UTF8
private static final java.nio.charset.Charset USASCII
private static final java.nio.charset.Charset ISO8859_1
private static final java.nio.charset.Charset UTF16
private static final java.nio.charset.Charset UTF16LE
private static final java.nio.charset.Charset UTF16BE
static java.nio.charset.CharsetEncoder getEncoder(java.nio.charset.Charset charset, java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetEncoder>> localEncoder)
static java.nio.charset.CharsetDecoder getDecoder(java.nio.charset.Charset charset, java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetDecoder>> localDecoder)
private static java.nio.charset.CharsetEncoder initEncoder(java.nio.charset.Charset charset, java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetEncoder>> localEncoder)
private static java.nio.charset.CharsetDecoder initDecoder(java.nio.charset.Charset charset, java.lang.ThreadLocal<java.lang.ref.Reference<java.nio.charset.CharsetDecoder>> localDecoder)
static java.nio.charset.Charset getCharset(ToNativeContext toNativeContext)
private static java.nio.charset.Charset getEncodingCharset(java.util.Collection<java.lang.annotation.Annotation> annotations)
static void throwException(java.nio.charset.CoderResult result)
static int terminatorWidth(java.nio.charset.Charset charset)
static int stringLength(java.nio.ByteBuffer in, int terminatorWidth)