Class FramedSnappyCompressorInputStream

    • Constructor Detail

      • 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