public static final class Codec.Identity extends Object implements Codec
Codec.Gzip, Codec.Identity
Modifier and Type | Field and Description |
---|---|
static Codec |
NONE
Special sentinel codec indicating that no compression should be used.
|
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 static final Codec NONE
public InputStream decompress(InputStream is)
Decompressor
decompress
in interface Decompressor
is
- The input stream of uncompressed datapublic 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)
Compressor
compress
in interface Compressor
os
- The output stream of uncompressed data