Top Fields Constructors Methods
jnr.ffi.provider.converters

pack-priv final Class StringUtil

extends Object
Class Inheritance
Imports
jnr.ffi.annotations.Encoding, jnr.ffi.mapper.MethodParameterContext, .ToNativeContext, java.lang.annotation.Annotation, java.lang.ref.Reference, .SoftReference, java.nio.ByteBuffer, java.nio.charset.CharacterCodingException, .Charset, .CharsetDecoder, .CharsetEncoder, .CoderResult, .CodingErrorAction, java.util.Arrays, .Collection

Field Summary

Modifier and TypeField and Description
private static final Charset
private static final Charset
private static final Charset
private static final Charset
private static final Charset
private static final Charset

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static Charset
getCharset(ToNativeContext toNativeContext)

pack-priv static CharsetDecoder
pack-priv static CharsetEncoder
private static Charset
private static CharsetDecoder
private static CharsetEncoder
pack-priv static int
stringLength(ByteBuffer in, int terminatorWidth)

pack-priv static int
pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ISO8859_1back to summary
private static final Charset ISO8859_1
USASCIIback to summary
private static final Charset USASCII
UTF16back to summary
private static final Charset UTF16
UTF16BEback to summary
private static final Charset UTF16BE
UTF16LEback to summary
private static final Charset UTF16LE
UTF8back to summary
private static final Charset UTF8

Constructor Detail

StringUtilback to summary
private StringUtil()

Method Detail

getCharsetback to summary
pack-priv static Charset getCharset(ToNativeContext toNativeContext)
getDecoderback to summary
pack-priv static CharsetDecoder getDecoder(Charset charset, ThreadLocal<Reference<CharsetDecoder>> localDecoder)
getEncoderback to summary
pack-priv static CharsetEncoder getEncoder(Charset charset, ThreadLocal<Reference<CharsetEncoder>> localEncoder)
getEncodingCharsetback to summary
private static Charset getEncodingCharset(Collection<Annotation> annotations)
initDecoderback to summary
private static CharsetDecoder initDecoder(Charset charset, ThreadLocal<Reference<CharsetDecoder>> localDecoder)
initEncoderback to summary
private static CharsetEncoder initEncoder(Charset charset, ThreadLocal<Reference<CharsetEncoder>> localEncoder)
stringLengthback to summary
pack-priv static int stringLength(ByteBuffer in, int terminatorWidth)
terminatorWidthback to summary
pack-priv static int terminatorWidth(Charset charset)
throwExceptionback to summary
pack-priv static void throwException(CoderResult result)