Class ZstdInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.github.luben.zstd.ZstdInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ZstdInputStream extends FilterInputStream
InputStream filter that decompresses the data provided by the underlying InputStream using Zstd compression. It does not support mark/reset methods
  • Constructor Details

    • ZstdInputStream

      public ZstdInputStream(@NotNull @NotNull InputStream inStream) throws IOException
      create a new decompressing InputStream
      Parameters:
      inStream - the stream to wrap
      Throws:
      IOException
    • ZstdInputStream

      public ZstdInputStream(@NotNull @NotNull InputStream inStream, @NotNull @NotNull BufferPool bufferPool) throws IOException
      create a new decompressing InputStream
      Parameters:
      inStream - the stream to wrap
      bufferPool - the pool to fetch and return buffers
      Throws:
      IOException
  • Method Details