Top Fields Constructors Methods
jnr.ffi.provider.converters

public Class StringBuilderParameterConverter

extends Object
implements ToNativeConverter<StringBuilder, ByteBuffer>, ToNativeConverter.PostInvocation<StringBuilder, ByteBuffer>
Class Inheritance
All Implemented Interfaces
jnr.ffi.mapper.ToNativeConverter.PostInvocation, jnr.ffi.mapper.ToNativeConverter
Annotations
@NoContext
@Cacheable
Imports
jnr.ffi.mapper.ToNativeContext, .ToNativeConverter, jnr.ffi.provider.ParameterFlags, java.lang.ref.Reference, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.CharacterCodingException, .Charset, .CharsetDecoder, .CharsetEncoder, .CoderResult

Field Summary

Modifier and TypeField and Description
private final Charset
private final ThreadLocal<Reference<CharsetDecoder>>
private final ThreadLocal<Reference<CharsetEncoder>>
private final int
private final int

Constructor Summary

AccessConstructor and Description
private
StringBuilderParameterConverter(Charset charset, int parameterFlags)

Method Summary

Modifier and TypeMethod and Description
public static StringBuilderParameterConverter
getInstance(int parameterFlags, ToNativeContext toNativeContext)

public static StringBuilderParameterConverter
getInstance(Charset charset, int parameterFlags, ToNativeContext toNativeContext)

public Class<ByteBuffer>
public void
public ByteBuffer
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charsetback to summary
private final Charset charset
localDecoderback to summary
private final ThreadLocal<Reference<CharsetDecoder>> localDecoder
localEncoderback to summary
private final ThreadLocal<Reference<CharsetEncoder>> localEncoder
parameterFlagsback to summary
private final int parameterFlags
terminatorWidthback to summary
private final int terminatorWidth

Constructor Detail

StringBuilderParameterConverterback to summary
private StringBuilderParameterConverter(Charset charset, int parameterFlags)

Method Detail

getInstanceback to summary
public static StringBuilderParameterConverter getInstance(int parameterFlags, ToNativeContext toNativeContext)
getInstanceback to summary
public static StringBuilderParameterConverter getInstance(Charset charset, int parameterFlags, ToNativeContext toNativeContext)
nativeTypeback to summary
public Class<ByteBuffer> nativeType()

Implements jnr.ffi.mapper.ToNativeConverter.nativeType.

postInvokeback to summary
public void postInvoke(StringBuilder stringBuilder, ByteBuffer buf, ToNativeContext context)

Implements jnr.ffi.mapper.ToNativeConverter.PostInvocation.postInvoke.

toNativeback to summary
public ByteBuffer toNative(StringBuilder parameter, ToNativeContext context)

Implements jnr.ffi.mapper.ToNativeConverter.toNative.