public class FramedLZ4CompressorOutputStream extends CompressorOutputStream
Based on the "spec" in the version "1.5.1 (31/03/2015)"
| Modifier and Type | Class and Description |
|---|---|
static class |
FramedLZ4CompressorOutputStream.BlockSize
The block sizes supported by the format.
|
static class |
FramedLZ4CompressorOutputStream.Parameters
Parameters of the LZ4 frame format.
|
| Constructor and Description |
|---|
FramedLZ4CompressorOutputStream(OutputStream out)
Constructs a new output stream that compresses data using the
LZ4 frame format using the default block size of 4MB.
|
FramedLZ4CompressorOutputStream(OutputStream out,
FramedLZ4CompressorOutputStream.Parameters params)
Constructs a new output stream that compresses data using the
LZ4 frame format using the given block size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish()
Compresses all remaining data and writes it to the stream,
doesn't close the underlying stream.
|
void |
write(byte[] data,
int off,
int len) |
void |
write(int b) |
flush, writepublic FramedLZ4CompressorOutputStream(OutputStream out) throws IOException
out - the OutputStream to which to write the compressed dataIOException - if writing the signature failspublic FramedLZ4CompressorOutputStream(OutputStream out, FramedLZ4CompressorOutputStream.Parameters params) throws IOException
out - the OutputStream to which to write the compressed dataparams - the parameters to useIOException - if writing the signature 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 occursCopyright © 2020 The Apache Software Foundation. All rights reserved.