| IJVMWrapperDirect Methods |
The IJVMWrapperDirect type exposes the following members.
Methods | Name | Description |
---|
| CastTo(IJavaObjectBase, IJavaType, Boolean) |
Converts the origin in the instance defined from clazz |
| CastTo(IJavaObjectBase, String, Boolean) |
Converts the origin in the instance defined from className |
| ConvertObject |
Converts an Object to its equivalent JVM type
|
| GetClass |
Retrieve a class from JVM
|
| GetClassName |
Gets the class name from the object pointer
|
| GetDirectBufferT |
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 |
| GetObject(IntPtr, Boolean) |
Gets an instance of IJavaObject from the object pointer
|
| GetObject(String, IntPtr, Boolean) |
Gets an instance of IJavaObject from the object pointer
|
| ImportPackage |
Imports a Java package to be used within the program
|
| IsAssignableFrom |
Check if sub is assignable from sup |
| IsInstanceOf |
Check if obj is instance of clazz |
| New |
Create a new JVM object
|
| NewArray(String, Object) |
Creates a new array
|
| NewArrayTArrayType(TArrayType) |
Creates a new array
|
| NewDirectBuffer(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
|
| NewDirectBuffer(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.
|
| NewDirectBufferT(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 |
| NewWithSignature |
Create a new JVM object
|
| Throw |
Throws an exception
|
| ToArray |
Gets an instance of IJavaObject from the object pointer
|
TopSee Also