com.sun.jna

Interface ToNativeConverter

public interface ToNativeConverter

Define conversion from a Java type to its corresponding native type.
Method Summary
ClassnativeType()
Indicate the type expected from ToNativeConverter.
ObjecttoNative(Object value, ToNativeContext context)
Convert a Java type to an appropriate native type.

Method Detail

nativeType

public Class nativeType()
Indicate the type expected from ToNativeConverter.

toNative

public Object toNative(Object value, ToNativeContext context)
Convert a Java type to an appropriate native type. The new type must be one of the following classes:
Copyright © 2007-2009 Timothy Wall. All Rights Reserved.