Class BufferProxy

java.lang.Object
org.mozilla.jss.util.NativeProxy
org.mozilla.jss.nss.BufferProxy
All Implemented Interfaces:
AutoCloseable

public class BufferProxy extends NativeProxy
  • Constructor Details

    • BufferProxy

      public BufferProxy(byte[] pointer)
  • Method Details

    • 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:
      releaseNativeResources in class NativeProxy
    • finalize

      protected void finalize() throws Throwable
      Description copied from class: NativeProxy
      Finalize 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:
      finalize in class NativeProxy
      Throws:
      Throwable