public static final class Codec.Gzip extends Object implements Codec
Codec.Gzip, Codec.Identity| Constructor and Description |
|---|
Gzip() |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
compress(OutputStream os)
Wraps an existing output stream with a compressing output stream.
|
InputStream |
decompress(InputStream is)
Wraps an existing input stream with a decompressing input stream.
|
String |
getMessageEncoding()
Returns the message encoding that this compressor uses.
|
public String getMessageEncoding()
CompressorThis can be values such as "gzip", "deflate", "snappy", etc.
getMessageEncoding in interface CompressorgetMessageEncoding in interface Decompressorpublic OutputStream compress(OutputStream os) throws IOException
Compressorcompress in interface Compressoros - The output stream of uncompressed dataIOExceptionpublic InputStream decompress(InputStream is) throws IOException
Decompressordecompress in interface Decompressoris - The input stream of uncompressed dataIOException