/** * Constructor using a configurable block size. * * @param os the outputstream to write compressed data to * @param uncompressedSize the uncompressed size of data * @param blockSize the block size used - must be a power of two * @throws IOException if writing of the size fails */ public SnappyCompressorOutputStream(final OutputStream os, final long uncompressedSize, final int blockSize) throws IOException { this(os, uncompressedSize, createParameterBuilder(blockSize).build()); }
/** * Constructs a new output stream that compresses * snappy-framed-compressed data to the specified output stream. * @param out the OutputStream to which to write the compressed data * @throws IOException if writing the signature fails */ public FramedSnappyCompressorOutputStream(final OutputStream out) throws IOException { this(out, SnappyCompressorOutputStream.createParameterBuilder(SnappyCompressorInputStream.DEFAULT_BLOCK_SIZE) .build()); }
/** * Constructor using a configurable block size. * * @param os the outputstream to write compressed data to * @param uncompressedSize the uncompressed size of data * @param blockSize the block size used - must be a power of two * @throws IOException if writing of the size fails */ public SnappyCompressorOutputStream(final OutputStream os, final long uncompressedSize, final int blockSize) throws IOException { this(os, uncompressedSize, createParameterBuilder(blockSize).build()); }
/** * Constructs a new output stream that compresses * snappy-framed-compressed data to the specified output stream. * @param out the OutputStream to which to write the compressed data * @throws IOException if writing the signature fails */ public FramedSnappyCompressorOutputStream(final OutputStream out) throws IOException { this(out, SnappyCompressorOutputStream.createParameterBuilder(SnappyCompressorInputStream.DEFAULT_BLOCK_SIZE) .build()); }