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.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public interface IJVMWrapperDirect

The IJVMWrapperDirect type exposes the following members.

Methods
 NameDescription
Public methodCastTo(IJavaObjectBase, IJavaType, Boolean) Creates from the origin a new IJavaObjectBase instance defined from clazz
Public methodCastTo(IJavaObjectBase, String, Boolean) Creates from the origin a new IJavaObjectBase instance defined from className
Public methodConvert(IJavaObjectBase, IJavaType, Boolean) Converts the origin in an IJavaObjectBase instance defined from clazz
Public methodConvert(IJavaObjectBase, String, Boolean) Converts the origin in an IJavaObjectBase 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(IJavaObject) 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 methodGetDirectBufferT(IJavaObject, Boolean) 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 methodIsSameObject Check if the obj1 instance is the same reference of obj2 in the JVM
Public methodNew(String) Instantiates a new JVM object of className type using the no-argument constructor.
Public methodNew(String, Object) Instantiates a new JVM object of className type using a constructor that accepts 1 argument.
Public methodNew(String, Object) Instantiates a new JVM object of className type using a constructor that accepts 10 arguments.
Public methodNew(String, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 2 arguments.
Public methodNew(String, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 3 arguments.
Public methodNew(String, Object, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 4 arguments.
Public methodNew(String, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 5 arguments.
Public methodNew(String, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 6 arguments.
Public methodNew(String, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 7 arguments.
Public methodNew(String, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 8 arguments.
Public methodNew(String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 9 arguments.
Public methodNew(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using a constructor that accepts 10 arguments.
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 by performing an internal copy of the content of stream.
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(JCOBridgeSharedBufferStreamT) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM which shares the memory of stream. This is the preferred overload for high-rate scenarios as it avoids repeated array copies from CLR to JVM and benefits from pooled buffer management.
Public methodNewDirectBufferT(T, Boolean, Boolean, Int32) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM by performing an internal copy of data.
Public methodNewWithSignature(String, String) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and no arguments.
Public methodNewWithSignature(String, String, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 1 argument.
Public methodNewWithSignature(String, String, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and a variable-length argument list.
Public methodNewWithSignature(String, String, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 2 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 3 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 4 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 5 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 6 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 7 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 8 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 9 arguments.
Public methodNewWithSignature(String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Instantiates a new JVM object of className type using the constructor identified by an explicit JNI signature and 10 arguments.
Public methodRentT Returns a JCOBridgeSharedBufferStreamT with an initial capacity derived from capacity, to be populated via Stream-based APIs and then passed to NewDirectBufferT(JCOBridgeSharedBufferStreamT).
Public methodThrow Throws an exception
Public methodToArray Gets an instance of IJavaObject from the object pointer
Public methodToJavaException Converts exceptionObject to a JavaException
Top
See Also