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