public class GZIPContentEncoding extends Object implements ContentEncoding
Constructor and Description |
---|
GZIPContentEncoding() |
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.
|
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()
ContentEncoding
getName
in interface ContentEncoding
public DeflaterOutputStream encode(OutputStream stream) throws IOException
ContentEncoding
DeflaterOutputStream.finish()
for more
details.encode
in interface ContentEncoding
stream
- The unencoded streamIOException
public InputStream decode(InputStream stream) throws IOException
ContentEncoding
decode
in interface ContentEncoding
stream
- The encoded streamIOException
Copyright © 2019. All rights reserved.