@InterfaceAudience.Private public final class Compression extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Compression.Algorithm
Compression algorithms.
|
(package private) static class |
Compression.FinishOnFlushCompressionStream |
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
private |
Compression()
Prevent the instantiation of class.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
decompress(ByteBuff dest,
InputStream bufferedBoundedStream,
int uncompressedSize,
Compression.Algorithm compressAlgo)
Decompresses data from the given stream using the configured compression algorithm.
|
private static ClassLoader |
getClassLoaderForCodec()
Returns the classloader to load the Codec class from.
|
static Compression.Algorithm |
getCompressionAlgorithmByName(String compressName) |
static String[] |
getSupportedAlgorithms()
Get names of supported compression algorithms.
|
private static final org.slf4j.Logger LOG
private Compression()
private static ClassLoader getClassLoaderForCodec()
public static Compression.Algorithm getCompressionAlgorithmByName(String compressName)
public static String[] getSupportedAlgorithms()
public static void decompress(ByteBuff dest, InputStream bufferedBoundedStream, int uncompressedSize, Compression.Algorithm compressAlgo) throws IOException
dest - the output bufferbufferedBoundedStream - a stream to read compressed data from, bounded to the exact amount
of compressed datauncompressedSize - uncompressed data size, header not includedcompressAlgo - compression algorithm usedIOException - if any IO error happenCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.