Class ZstdDirectBufferDecompressingStreamNoFinalizer

  • All Implemented Interfaces:
    java.io.Closeable

    public class ZstdDirectBufferDecompressingStreamNoFinalizer
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • ZstdDirectBufferDecompressingStreamNoFinalizer

        public ZstdDirectBufferDecompressingStreamNoFinalizer​(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()
      • recommendedTargetBufferSize

        public static int recommendedTargetBufferSize()
      • read

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

        public void close()
        Specified by:
        close in interface java.io.Closeable