Class DaveNativeHandle

java.lang.Object
moe.kyokobot.libdave.impl.DaveNativeHandle
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
NativeDecryptor, NativeEncryptor, NativeKeyRatchet, NativeSession

@Internal public abstract class DaveNativeHandle extends Object implements AutoCloseable
  • Field Details

    • handle

      protected final long handle
    • closed

      protected boolean closed
  • Constructor Details

    • DaveNativeHandle

      protected DaveNativeHandle(long handle)
  • Method Details

    • assertOpen

      protected void assertOpen()
    • isClosed

      public boolean isClosed()
    • close

      public abstract void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception