Class BaseZstdBufferDecompressingStreamNoFinalizer

    • Field Detail

      • stream

        protected long stream
      • source

        protected java.nio.ByteBuffer source
      • closed

        protected boolean closed
      • finishedFrame

        private boolean finishedFrame
      • streamEnd

        private boolean streamEnd
      • consumed

        private int consumed
      • produced

        private int produced
    • Constructor Detail

      • BaseZstdBufferDecompressingStreamNoFinalizer

        BaseZstdBufferDecompressingStreamNoFinalizer​(java.nio.ByteBuffer source)
    • Method Detail

      • refill

        protected java.nio.ByteBuffer refill​(java.nio.ByteBuffer toRefill)
        Override this method in case the byte buffer passed to the constructor might not contain the full compressed stream
        Parameters:
        toRefill - current buffer
        Returns:
        either the current buffer (but refilled and flipped if there was new content) or a new buffer.
      • hasRemaining

        public boolean hasRemaining()
      • readInternal

        int readInternal​(java.nio.ByteBuffer target,
                         boolean isDirectBufferRequired)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • read

        public abstract int read​(java.nio.ByteBuffer target)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • createDStream

        abstract long createDStream()
      • freeDStream

        abstract long freeDStream​(long stream)
      • initDStream

        abstract long initDStream​(long stream)
      • decompressStream

        abstract long decompressStream​(long stream,
                                       java.nio.ByteBuffer dst,
                                       int dstOffset,
                                       int dstSize,
                                       java.nio.ByteBuffer src,
                                       int srcOffset,
                                       int srcSize)