Click or drag to resize

IJVMWrapperDirect Interface

Public direct accessor for JVM: use this interface to directly manage objects and classes, this interface avoids use of dynamic resolution

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.12.240512-4d4b2fafd3df13602ccdeccef07b026ccf8b47b0
Syntax
public interface IJVMWrapperDirect

The IJVMWrapperDirect type exposes the following members.

Methods
 NameDescription
Public methodCastTo 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