Package jnr.ffi.provider.converters
Class StringResultConverter
- java.lang.Object
-
- jnr.ffi.provider.converters.StringResultConverter
-
- All Implemented Interfaces:
FromNativeConverter<String,Pointer>
public class StringResultConverter extends Object implements FromNativeConverter<String,Pointer>
Converts a native pointer result into a java String
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jnr.ffi.mapper.FromNativeConverter
FromNativeConverter.Cacheable, FromNativeConverter.FromNative, FromNativeConverter.NoContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
fromNative(Pointer pointer, FromNativeContext context)
static FromNativeConverter<String,Pointer>
getInstance(Charset cs)
static FromNativeConverter<String,Pointer>
getInstance(FromNativeContext fromNativeContext)
Class<Pointer>
nativeType()
-
-
-
Method Detail
-
getInstance
public static FromNativeConverter<String,Pointer> getInstance(Charset cs)
-
getInstance
public static FromNativeConverter<String,Pointer> getInstance(FromNativeContext fromNativeContext)
-
fromNative
public String fromNative(Pointer pointer, FromNativeContext context)
- Specified by:
fromNative
in interfaceFromNativeConverter<String,Pointer>
-
nativeType
public Class<Pointer> nativeType()
- Specified by:
nativeType
in interfaceFromNativeConverter<String,Pointer>
-
-