public interface ContentEncoding
Modifier and Type | Method and 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 streamIOException
InputStream decode(InputStream stream) throws IOException
stream
- The encoded streamIOException
Copyright © 2019. All rights reserved.