|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bridj.JNI
@Deprecated public class JNI
Low-level calls to JNI and to BridJ's native library.
Constructor Summary | |
---|---|
JNI()
Deprecated. |
Method Summary | |
---|---|
static void |
callSinglePointerArgVoidFunction(long functionPointer,
long pointerArg,
int callMode)
Deprecated. |
static void |
deleteGlobalRef(long reference)
Deprecated. Delete a global reference created by newGlobalRef(java.lang.Object) |
static void |
deleteWeakGlobalRef(long reference)
Deprecated. Delete a weak global reference created by newWeakGlobalRef(java.lang.Object) |
static long |
getDirectBufferAddress(Buffer b)
Deprecated. Get the native address pointed to by a direct buffer. |
static long |
getDirectBufferCapacity(Buffer b)
Deprecated. Get the capacity in bytes of a direct buffer. |
static long |
getEnv()
Deprecated. |
static Pointer<?> |
getGlobalPointer(Object object)
Deprecated. |
static long |
getJVM()
Deprecated. |
static ByteBuffer |
newDirectByteBuffer(long address,
long capacity)
Deprecated. Wrap a native address as a direct byte buffer of the specified byte capacity. |
static long |
newGlobalRef(Object object)
Deprecated. Create a JNI global reference to a Java object : long value that can be safely passed to C programs and stored, which prevent the object from being garbage-collected and which validity runs until deleteGlobalRef(long) is called |
static long |
newWeakGlobalRef(Object object)
Deprecated. Create a JNI weak global reference to a Java object : long value that can be safely passed to C programs and stored, which validity runs until deleteWeakGlobalRef(long) is called. |
static Object |
refToObject(long refPeer)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JNI()
Method Detail |
---|
@Deprecated public static long getEnv()
@Deprecated public static long getJVM()
@Deprecated public static Object refToObject(long refPeer)
public static long newGlobalRef(Object object)
deleteGlobalRef(long)
is called
public static void deleteGlobalRef(long reference)
newGlobalRef(java.lang.Object)
public static Pointer<?> getGlobalPointer(Object object)
public static long newWeakGlobalRef(Object object)
deleteWeakGlobalRef(long)
is called.
public static void deleteWeakGlobalRef(long reference)
newWeakGlobalRef(java.lang.Object)
public static ByteBuffer newDirectByteBuffer(long address, long capacity)
public static long getDirectBufferAddress(Buffer b)
public static long getDirectBufferCapacity(Buffer b)
public static void callSinglePointerArgVoidFunction(long functionPointer, long pointerArg, int callMode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |