ContentEncodingpublic class GZIPContentEncoding extends Object implements ContentEncoding
| Constructor | Description |
|---|---|
GZIPContentEncoding() |
| Modifier and Type | Method | Description |
|---|---|---|
InputStream |
decode(InputStream stream) |
Decode a stream with this encoding type and return a new stream.
|
DeflaterOutputStream |
encode(OutputStream stream) |
Encode a stream and return a new stream with this encoding type.
|
boolean |
equals(Object obj) |
|
String |
getName() |
Get the name of the encoding - eg gzip, deflate
|
int |
hashCode() |
public static final String name
public String getName()
ContentEncodinggetName in interface ContentEncodingpublic DeflaterOutputStream encode(OutputStream stream) throws IOException
ContentEncodingDeflaterOutputStream.finish() for more
details.encode in interface ContentEncodingstream - The unencoded streamIOExceptionpublic InputStream decode(InputStream stream) throws IOException
ContentEncodingdecode in interface ContentEncodingstream - The encoded streamIOExceptionCopyright © 2018. All rights reserved.