Package org.mozilla.jss.nss
Class BufferProxy
- java.lang.Object
-
- org.mozilla.jss.util.NativeProxy
-
- org.mozilla.jss.nss.BufferProxy
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class BufferProxy extends NativeProxy
-
-
Field Summary
-
Fields inherited from class org.mozilla.jss.util.NativeProxy
logger
-
-
Constructor Summary
Constructors Constructor Description BufferProxy(byte[] pointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Finalize this NativeProxy by releasing its native resources.protected voidreleaseNativeResources()It is usually better to call org.mozilla.jss.nss.Buffer.Free(...)-
Methods inherited from class org.mozilla.jss.util.NativeProxy
assertRegistryEmpty, clear, close, equals
-
-
-
-
Method Detail
-
releaseNativeResources
protected void releaseNativeResources()
It is usually better to call org.mozilla.jss.nss.Buffer.Free(...) instead. But this does it for you.- Specified by:
releaseNativeResourcesin classNativeProxy
-
finalize
protected void finalize() throws java.lang.ThrowableDescription copied from class:NativeProxyFinalize this NativeProxy by releasing its native resources. The finalizer calls releaseNativeResources() so you don't have to. This finalizer should be called from the finalize() method of all subclasses: class MyProxy extends NativeProxy { [...] protected void finalize() throws Throwable { // do any object-specific finalization other than // releasing native resources [...] super.finalize(); } }- Overrides:
finalizein classNativeProxy- Throws:
java.lang.Throwable
-
-