Package org.apache.juneau.encoders
Class IdentityEncoder
java.lang.Object
org.apache.juneau.encoders.Encoder
org.apache.juneau.encoders.IdentityEncoder
Encoder for handling "identity"  encoding and decoding.
 
Identity encoding is just another name for no encoding at all.
Notes:
- This class is thread safe and reusable.
See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]Returns[."identity" ]Converts the specified compressed input stream into an uncompressed stream.Converts the specified uncompressed output stream into an uncompressed stream.
- 
Field Details- 
INSTANCESingleton
 
- 
- 
Constructor Details- 
IdentityEncoderpublic IdentityEncoder()Constructor.
 
- 
- 
Method Details- 
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.
 
- 
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.
 
- 
getCodingsReturns[."identity" ]- Specified by:
- getCodingsin class- Encoder
- Returns:
- The codings that this encoder handles.
 
 
-