org.mozilla.jss.util
public abstract class NativeProxy extends Object
| Constructor Summary | |
|---|---|
| NativeProxy(byte[] pointer)
Create a NativeProxy from a byte array representing a C pointer.
| |
| Method Summary | |
|---|---|
| static void | assertRegistryEmpty()
Assert that the Registry is empty. |
| boolean | equals(Object obj)
Deep comparison operator. |
| protected void | finalize()
Finalize this NativeProxy by releasing its native resources.
|
| long | getRegistryIndex() |
| static Enumeration | getRegistryIndices() |
| protected abstract void | releaseNativeResources()
Release the native resources used by this proxy.
|
Parameters: 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.
Returns: true if obj has the same underlying native
pointer. false if the obj is null or has
a different underlying native pointer.
Returns: The index of this NativeProxy in the NativeProxy registry.
See Also: NativeProxy
Returns: A list of the indices in the registry. Each element is a Long.
See Also: NativeProxy
You don't call this method; NativeProxy.finalize() calls it for you.
You must declare a finalize() method which calls super.finalize().