public abstract class NativeProxy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
Constructor and Description |
---|
NativeProxy(byte[] pointer)
Create a NativeProxy from a byte array representing a C pointer.
|
Modifier and Type | Method and Description |
---|---|
static void |
assertRegistryEmpty()
Assert that the Registry is empty.
|
boolean |
equals(java.lang.Object obj)
Deep comparison operator.
|
protected void |
finalize()
Deprecated.
finalize() in Object has been deprecated
|
long |
getRegistryIndex() |
static java.util.Enumeration<java.lang.Long> |
getRegistryIndices() |
protected abstract void |
releaseNativeResources()
Release the native resources used by this proxy.
|
public NativeProxy(byte[] pointer)
pointer
- A byte array, created with JSS_ptrToByteArray, that
contains a pointer pointing to a native data structure. The
NativeProxy instance acts as a proxy for that native data structure.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
has the same underlying native
pointer. false if the obj
is null or has
a different underlying native pointer.protected abstract void releaseNativeResources()
You don't call this method; NativeProxy.finalize() calls it for you.
You must declare a finalize() method which calls super.finalize().
@Deprecated protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public static java.util.Enumeration<java.lang.Long> getRegistryIndices()
getRegistryIndex()
public long getRegistryIndex()
getRegistryIndices()
public static void assertRegistryEmpty()