Package org.apache.juneau.encoders
Class GzipEncoder
java.lang.Object
org.apache.juneau.encoders.Encoder
org.apache.juneau.encoders.GzipEncoder
Encoder for handling "gzip"  encoding and decoding.
 
Notes:
- This class is thread safe and reusable.
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]Returns[."gzip" ]Converts the specified compressed input stream into an uncompressed stream.Converts the specified uncompressed output stream into an uncompressed stream.
- 
Constructor Details- 
GzipEncoderpublic GzipEncoder()
 
- 
- 
Method Details- 
getOutputStreamDescription copied from class:EncoderConverts the specified uncompressed output stream into an uncompressed stream.- Specified by:
- getOutputStreamin class- Encoder
- Parameters:
- os- The uncompressed stream.
- Returns:
- The compressed stream stream.
- Throws:
- IOException- If any errors occur.
 
- 
getInputStreamDescription copied from class:EncoderConverts the specified compressed input stream into an uncompressed stream.- Specified by:
- getInputStreamin class- Encoder
- Parameters:
- is- The compressed stream.
- Returns:
- The uncompressed stream.
- Throws:
- IOException- If any errors occur, such as on a stream that's not a valid GZIP input stream.
 
- 
getCodingsReturns[."gzip" ]- Specified by:
- getCodingsin class- Encoder
- Returns:
- The codings that this encoder handles.
 
 
-