Class ZstdOutputStreamNoFinalizer

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.github.luben.zstd.ZstdOutputStreamNoFinalizer
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ZstdOutputStreamNoFinalizer extends FilterOutputStream
OutputStream filter that compresses the data using Zstd compression.
  • Field Details

    • stream

      private final long stream
    • srcPos

      private long srcPos
    • dstPos

      private long dstPos
    • bufferPool

      private final BufferPool bufferPool
    • dstByteBuffer

      private final ByteBuffer dstByteBuffer
    • dst

      private final byte[] dst
    • isClosed

      private boolean isClosed
    • dstSize

      private static final int dstSize
    • closeFrameOnFlush

      private boolean closeFrameOnFlush
    • frameClosed

      private boolean frameClosed
  • Constructor Details

    • ZstdOutputStreamNoFinalizer

      public ZstdOutputStreamNoFinalizer(OutputStream outStream, int level) throws IOException
      create a new compressing OutputStream
      Parameters:
      outStream - the stream to wrap
      level - the compression level
      Throws:
      IOException
    • ZstdOutputStreamNoFinalizer

      public ZstdOutputStreamNoFinalizer(OutputStream outStream) throws IOException
      create a new compressing OutputStream
      Parameters:
      outStream - the stream to wrap
      Throws:
      IOException
    • ZstdOutputStreamNoFinalizer

      public ZstdOutputStreamNoFinalizer(OutputStream outStream, BufferPool bufferPool, int level) throws IOException
      create a new compressing OutputStream
      Parameters:
      outStream - the stream to wrap
      bufferPool - the pool to fetch and return buffers
      Throws:
      IOException
    • ZstdOutputStreamNoFinalizer

      public ZstdOutputStreamNoFinalizer(OutputStream outStream, BufferPool bufferPool) throws IOException
      create a new compressing OutputStream
      Parameters:
      outStream - the stream to wrap
      bufferPool - the pool to fetch and return buffers
      Throws:
      IOException
  • Method Details