public class GzipEncoder extends Encoder
| Constructor and Description |
|---|
GzipEncoder() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCodings()
Returns
[. |
InputStream |
getInputStream(InputStream is)
Converts the specified compressed input stream into an uncompressed stream.
|
OutputStream |
getOutputStream(OutputStream os)
Converts the specified uncompressed output stream into an uncompressed stream.
|
public GzipEncoder()
public OutputStream getOutputStream(OutputStream os) throws IOException
EncodergetOutputStream in class Encoderos - The uncompressed stream.IOException - If any errors occur.public InputStream getInputStream(InputStream is) throws IOException
EncodergetInputStream in class Encoderis - The compressed stream.IOException - If any errors occur, such as on a stream that's not a valid GZIP input stream.public String[] getCodings()
["gzip" ].getCodings in class EncoderCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.