public class BlockLZ4CompressorOutputStream extends CompressorOutputStream
| Constructor and Description | 
|---|
| BlockLZ4CompressorOutputStream(OutputStream os)Creates a new LZ4 output stream. | 
| BlockLZ4CompressorOutputStream(OutputStream os,
                              Parameters params)Creates a new LZ4 output stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| static Parameters.Builder | createParameterBuilder()Returns a builder correctly configured for the LZ4 algorithm. | 
| void | finish()Compresses all remaining data and writes it to the stream,
 doesn't close the underlying stream. | 
| void | prefill(byte[] data,
       int off,
       int len)Adds some initial data to fill the window with. | 
| void | write(byte[] data,
     int off,
     int len) | 
| void | write(int b) | 
flush, writepublic BlockLZ4CompressorOutputStream(OutputStream os) throws IOException
os - An OutputStream to read compressed data fromIOException - if reading failspublic BlockLZ4CompressorOutputStream(OutputStream os, Parameters params) throws IOException
os - An OutputStream to read compressed data fromparams - The parameters to use for LZ77 compression.IOException - if reading failspublic void write(int b) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] data, int off, int len) throws IOException
write in class OutputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void finish() throws IOException
IOException - if an error occurspublic void prefill(byte[] data, int off, int len)
data - the data to fill the window with.off - offset of real data into the arraylen - amount of dataIllegalStateException - if the stream has already started to write dataLZ77Compressor.prefill(byte[])public static Parameters.Builder createParameterBuilder()
Copyright © 2018 The Apache Software Foundation. All rights reserved.