Class FramedSnappyCompressorInputStream

java.lang.Object
java.io.InputStream
org.apache.commons.compress.compressors.CompressorInputStream
org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorInputStream
All Implemented Interfaces:
Closeable, AutoCloseable, InputStreamStatistics

public class FramedSnappyCompressorInputStream extends CompressorInputStream implements InputStreamStatistics
CompressorInputStream for the framing Snappy format.

Based on the "spec" in the version "Last revised: 2013-10-25"

Since:
1.7
See Also:
  • Constructor Details

    • FramedSnappyCompressorInputStream

      public FramedSnappyCompressorInputStream(InputStream in) throws IOException
      Constructs a new input stream that decompresses snappy-framed-compressed data from the specified input stream using the FramedSnappyDialect.STANDARD dialect.
      Parameters:
      in - the InputStream from which to read the compressed data
      Throws:
      IOException - if reading fails
    • FramedSnappyCompressorInputStream

      public FramedSnappyCompressorInputStream(InputStream in, FramedSnappyDialect dialect) throws IOException
      Constructs a new input stream that decompresses snappy-framed-compressed data from the specified input stream.
      Parameters:
      in - the InputStream from which to read the compressed data
      dialect - the dialect used by the compressed stream
      Throws:
      IOException - if reading fails
    • FramedSnappyCompressorInputStream

      public FramedSnappyCompressorInputStream(InputStream in, int blockSize, FramedSnappyDialect dialect) throws IOException
      Constructs a new input stream that decompresses snappy-framed-compressed data from the specified input stream.
      Parameters:
      in - the InputStream from which to read the compressed data
      blockSize - the block size to use for the compressed stream
      dialect - the dialect used by the compressed stream
      Throws:
      IOException - if reading fails
      IllegalArgumentException - if blockSize is not bigger than 0
      Since:
      1.14
  • Method Details