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
Encoder
getOutputStream
in class Encoder
os
- The uncompressed stream.IOException
- If any errors occur.public InputStream getInputStream(InputStream is) throws IOException
Encoder
getInputStream
in class Encoder
is
- 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 Encoder
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.