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) throws IOException
Decompressordecompress in interface Decompressoris - The input stream of uncompressed dataIOExceptionpublic 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 dataIOException