@InterfaceAudience.Private public final class Compression extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Compression.Algorithm
Compression algorithms.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
decompress(byte[] dest,
int destOffset,
java.io.InputStream bufferedBoundedStream,
int compressedSize,
int uncompressedSize,
Compression.Algorithm compressAlgo)
Decompresses data from the given stream using the configured compression
algorithm.
|
static Compression.Algorithm |
getCompressionAlgorithmByName(java.lang.String compressName) |
static java.lang.String[] |
getSupportedAlgorithms()
Get names of supported compression algorithms.
|
public static Compression.Algorithm getCompressionAlgorithmByName(java.lang.String compressName)
public static java.lang.String[] getSupportedAlgorithms()
public static void decompress(byte[] dest,
int destOffset,
java.io.InputStream bufferedBoundedStream,
int compressedSize,
int uncompressedSize,
Compression.Algorithm compressAlgo)
throws java.io.IOException
dest - the output bytes bufferdestOffset - start writing position of the output bufferbufferedBoundedStream - a stream to read compressed data from, bounded to the exact amount
of compressed datacompressedSize - compressed data size, header not includeduncompressedSize - uncompressed data size, header not includedcompressAlgo - compression algorithm usedjava.io.IOException