Class BaseZstdBufferDecompressingStreamNoFinalizer

    • Field Detail

      • stream

        protected long stream
      • source

        protected java.nio.ByteBuffer source
      • closed

        protected boolean closed
    • 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()
      • close

        public void close()
        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