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()
Compressor
This can be values such as "gzip", "deflate", "snappy", etc.
getMessageEncoding
in interface Compressor
getMessageEncoding
in interface Decompressor
public OutputStream compress(OutputStream os) throws IOException
Compressor
compress
in interface Compressor
os
- The output stream of uncompressed dataIOException
public InputStream decompress(InputStream is) throws IOException
Decompressor
decompress
in interface Decompressor
is
- The input stream of uncompressed dataIOException