Class FramedSnappyCompressorOutputStream

    • Constructor Detail

      • FramedSnappyCompressorOutputStream

        public FramedSnappyCompressorOutputStream​(OutputStream out)
                                           throws IOException
        Constructs a new output stream that compresses snappy-framed-compressed data to the specified output stream.
        Parameters:
        out - the OutputStream to which to write the compressed data
        Throws:
        IOException - if writing the signature fails
      • FramedSnappyCompressorOutputStream

        public FramedSnappyCompressorOutputStream​(OutputStream out,
                                                  Parameters params)
                                           throws IOException
        Constructs a new output stream that compresses snappy-framed-compressed data to the specified output stream.
        Parameters:
        out - the OutputStream to which to write the compressed data
        params - parameters used to fine-tune compression, in particular to balance compression ratio vs compression speed.
        Throws:
        IOException - if writing the signature fails