Package com.sun.jna
Class NativeMappedConverter
- java.lang.Object
- 
- com.sun.jna.NativeMappedConverter
 
- 
- All Implemented Interfaces:
- FromNativeConverter,- ToNativeConverter,- TypeConverter
 
 public class NativeMappedConverter extends java.lang.Object implements TypeConverter Provides type conversion for instances ofNativeMapped.
- 
- 
Constructor SummaryConstructors Constructor Description NativeMappedConverter(java.lang.Class<?> type)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeMappeddefaultValue()java.lang.ObjectfromNative(java.lang.Object nativeValue, FromNativeContext context)Convert the given native object into its Java representation using the given context.static NativeMappedConvertergetInstance(java.lang.Class<?> cls)java.lang.Class<?>nativeType()Indicate the native type used by this converter.java.lang.ObjecttoNative(java.lang.Object value, ToNativeContext context)Convert a Java type to an appropriate native type.
 
- 
- 
- 
Method Detail- 
getInstancepublic static NativeMappedConverter getInstance(java.lang.Class<?> cls) 
 - 
defaultValuepublic NativeMapped defaultValue() 
 - 
fromNativepublic java.lang.Object fromNative(java.lang.Object nativeValue, FromNativeContext context)Description copied from interface:FromNativeConverterConvert the given native object into its Java representation using the given context.- Specified by:
- fromNativein interface- FromNativeConverter
 
 - 
nativeTypepublic java.lang.Class<?> nativeType() Description copied from interface:FromNativeConverterIndicate the native type used by this converter.- Specified by:
- nativeTypein interface- FromNativeConverter
- Specified by:
- nativeTypein interface- ToNativeConverter
 
 - 
toNativepublic java.lang.Object toNative(java.lang.Object value, ToNativeContext context)Description copied from interface:ToNativeConverterConvert a Java type to an appropriate native type. The new type must be one of the following classes:- Pointer
- Boolean
- Byte
- Short
- Character
- Integer
- NativeLong
- Long
- Float
- Double
- Structure
- String
- WString
- Buffer(unsupported in direct mode)
- primitive array (unsupported in direct mode)
 - Specified by:
- toNativein interface- ToNativeConverter
 
 
- 
 
-