Click or drag to resize

IJVMWrapperDirect Methods

The IJVMWrapperDirect type exposes the following members.

Methods
 NameDescription
Public methodCastTo(IJavaObjectBase, IJavaType, Boolean) Converts the origin in the instance defined from clazz
Public methodCastTo(IJavaObjectBase, String, Boolean) Converts the origin in the instance defined from className
Public methodConvertObject Converts an Object to its equivalent JVM type
Public methodGetClass Retrieve a class from JVM
Public methodGetClassName Gets the class name from the object pointer
Public methodGetDirectBufferT Returns a new instance of JCOBridgeDirectBufferT holding the memory of the https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html which belongs to obj
Public methodGetObject(IntPtr, Boolean) Gets an instance of IJavaObject from the object pointer
Public methodGetObject(String, IntPtr, Boolean) Gets an instance of IJavaObject from the object pointer
Public methodCode exampleImportPackage Imports a Java package to be used within the program
Public methodIsAssignableFrom Check if sub is assignable from sup
Public methodIsInstanceOf Check if obj is instance of clazz
Public methodNew Create a new JVM object
Public methodNewArray(String, Object) Creates a new array
Public methodNewArrayTArrayType(TArrayType) Creates a new array
Public methodNewDirectBuffer(MemoryStream, Boolean, EventHandlerMemoryStream, Int32) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM which shares the stream. The method helps to avoid too many array copies from CLR to JVM
Public methodNewDirectBuffer(IntPtr, Int64, EventHandlerObject, Object, Int32) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM which belongs to rawAddr.
Public methodNewDirectBufferT(T, Boolean, Boolean, Int32) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM which belongs to data. If this method is used in conjunction with arrangeCapacity and/or useMemoryControlBlock set to , better performances are obtained from NewDirectBuffer(MemoryStream, Boolean, EventHandlerMemoryStream, Int32) becuase MemoryStream automatically manages its capacity and, in general, will be the memory space available for control memory block needed from useMemoryControlBlock set to
Public methodNewWithSignature Create a new JVM object
Public methodThrow Throws an exception
Public methodToArray Gets an instance of IJavaObject from the object pointer
Top
See Also