Class EncoderJNI.Wrapper

  • Enclosing class:
    EncoderJNI

    static class EncoderJNI.Wrapper
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long[] context  
      private boolean fresh  
      private java.nio.ByteBuffer inputBuffer  
    • Constructor Summary

      Constructors 
      Constructor Description
      Wrapper​(int inputBufferSize, int quality, int lgwin, Encoder.Mode mode)  
    • Field Detail

      • context

        protected final long[] context
      • inputBuffer

        private final java.nio.ByteBuffer inputBuffer
      • fresh

        private boolean fresh
    • Constructor Detail

      • Wrapper

        Wrapper​(int inputBufferSize,
                int quality,
                int lgwin,
                Encoder.Mode mode)
         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • attachDictionary

        boolean attachDictionary​(java.nio.ByteBuffer dictionary)
      • isSuccess

        boolean isSuccess()
      • hasMoreOutput

        boolean hasMoreOutput()
      • hasRemainingInput

        boolean hasRemainingInput()
      • isFinished

        boolean isFinished()
      • getInputBuffer

        java.nio.ByteBuffer getInputBuffer()
      • pull

        java.nio.ByteBuffer pull()
      • destroy

        void destroy()
        Releases native resources.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable