Class FramedSnappyCompressorOutputStream

java.lang.Object
java.io.OutputStream
org.apache.commons.compress.compressors.CompressorOutputStream
org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class FramedSnappyCompressorOutputStream extends CompressorOutputStream
CompressorOutputStream for the framing Snappy format.

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

Since:
1.14
See Also:
  • Constructor Details

    • 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
  • Method Details