public class LzoLibrary extends Object
Constructor and Description |
---|
LzoLibrary() |
Modifier and Type | Method and Description |
---|---|
static LzoLibrary |
getInstance() |
LzoCompressor |
newCompressor(LzoAlgorithm algorithm,
LzoConstraint constraint)
Returns a new compressor for the given algorithm.
|
LzoDecompressor |
newDecompressor(LzoAlgorithm algorithm,
LzoConstraint constraint)
Returns a new decompressor for the given algorithm.
|
public LzoLibrary()
@Nonnull public static LzoLibrary getInstance()
@Nonnull public LzoCompressor newCompressor(@CheckForNull LzoAlgorithm algorithm, @CheckForNull LzoConstraint constraint)
LzoConstraint.COMPRESSION
.
Applied to LzoAlgorithm.LZO1X
algorithm, it yields an LZO1X999 compressor with a compression level of 7.@Nonnull public LzoDecompressor newDecompressor(@Nonnull LzoAlgorithm algorithm, @CheckForNull LzoConstraint constraint)
LzoConstraint.SAFETY
.