public static class FramedLZ4CompressorOutputStream.Parameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private FramedLZ4CompressorOutputStream.BlockSize |
blockSize |
static FramedLZ4CompressorOutputStream.Parameters |
DEFAULT
The default parameters of 4M block size, enabled content
checksum, disabled block checksums and independent blocks.
|
private Parameters |
lz77params |
private boolean |
withBlockChecksum |
private boolean |
withBlockDependency |
private boolean |
withContentChecksum |
Constructor and Description |
---|
Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize)
Sets up custom a custom block size for the LZ4 stream but
otherwise uses the defaults of enabled content checksum,
disabled block checksums and independent blocks.
|
Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize,
boolean withContentChecksum,
boolean withBlockChecksum,
boolean withBlockDependency)
Sets up custom parameters for the LZ4 stream.
|
Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize,
boolean withContentChecksum,
boolean withBlockChecksum,
boolean withBlockDependency,
Parameters lz77params)
Sets up custom parameters for the LZ4 stream.
|
Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize,
Parameters lz77params)
Sets up custom a custom block size for the LZ4 stream but
otherwise uses the defaults of enabled content checksum,
disabled block checksums and independent blocks.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
private final FramedLZ4CompressorOutputStream.BlockSize blockSize
private final boolean withContentChecksum
private final boolean withBlockChecksum
private final boolean withBlockDependency
private final Parameters lz77params
public static final FramedLZ4CompressorOutputStream.Parameters DEFAULT
This matches the defaults of the lz4 command line utility.
public Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize)
blockSize
- the size of a single block.public Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize, Parameters lz77params)
blockSize
- the size of a single block.lz77params
- parameters used to fine-tune compression,
in particular to balance compression ratio vs compression
speed.public Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize, boolean withContentChecksum, boolean withBlockChecksum, boolean withBlockDependency)
blockSize
- the size of a single block.withContentChecksum
- whether to write a content checksumwithBlockChecksum
- whether to write a block checksum.
Note that block checksums are not supported by the lz4
command line utilitywithBlockDependency
- whether a block may depend on
the content of a previous block. Enabling this may improve
compression ratio but makes it impossible to decompress the
output in parallel.public Parameters(FramedLZ4CompressorOutputStream.BlockSize blockSize, boolean withContentChecksum, boolean withBlockChecksum, boolean withBlockDependency, Parameters lz77params)
blockSize
- the size of a single block.withContentChecksum
- whether to write a content checksumwithBlockChecksum
- whether to write a block checksum.
Note that block checksums are not supported by the lz4
command line utilitywithBlockDependency
- whether a block may depend on
the content of a previous block. Enabling this may improve
compression ratio but makes it impossible to decompress the
output in parallel.lz77params
- parameters used to fine-tune compression,
in particular to balance compression ratio vs compression
speed.