GZIPContentEncodingpublic interface ContentEncoding
| 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.
|
String |
getName() |
Get the name of the encoding - eg gzip, deflate
|
String getName()
DeflaterOutputStream encode(OutputStream stream) throws IOException
DeflaterOutputStream.finish() for more
details.stream - The unencoded streamIOExceptionInputStream decode(InputStream stream) throws IOException
stream - The encoded streamIOExceptionCopyright © 2018. All rights reserved.