Class StringUtil
java.lang.Object
jnr.ffi.provider.converters.StringUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static CharsetgetCharset(ToNativeContext toNativeContext) (package private) static CharsetDecodergetDecoder(Charset charset, ThreadLocal<Reference<CharsetDecoder>> localDecoder) (package private) static CharsetEncodergetEncoder(Charset charset, ThreadLocal<Reference<CharsetEncoder>> localEncoder) private static CharsetgetEncodingCharset(Collection<Annotation> annotations) private static CharsetDecoderinitDecoder(Charset charset, ThreadLocal<Reference<CharsetDecoder>> localDecoder) private static CharsetEncoderinitEncoder(Charset charset, ThreadLocal<Reference<CharsetEncoder>> localEncoder) (package private) static intstringLength(ByteBuffer in, int terminatorWidth) (package private) static intterminatorWidth(Charset charset) (package private) static voidthrowException(CoderResult result)
-
Field Details
-
UTF8
-
USASCII
-
ISO8859_1
-
UTF16
-
UTF16LE
-
UTF16BE
-
-
Constructor Details
-
StringUtil
private StringUtil()
-
-
Method Details
-
getEncoder
static CharsetEncoder getEncoder(Charset charset, ThreadLocal<Reference<CharsetEncoder>> localEncoder) -
getDecoder
static CharsetDecoder getDecoder(Charset charset, ThreadLocal<Reference<CharsetDecoder>> localDecoder) -
initEncoder
private static CharsetEncoder initEncoder(Charset charset, ThreadLocal<Reference<CharsetEncoder>> localEncoder) -
initDecoder
private static CharsetDecoder initDecoder(Charset charset, ThreadLocal<Reference<CharsetDecoder>> localDecoder) -
getCharset
-
getEncodingCharset
-
throwException
-
terminatorWidth
-
stringLength
-