public class IdentityEncoder extends Encoder
Identity encoding is just another name for no encoding at all.
| Modifier and Type | Field and Description |
|---|---|
static IdentityEncoder |
INSTANCE
Singleton
|
| Constructor and Description |
|---|
IdentityEncoder()
Constructor.
|
| 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 static final IdentityEncoder INSTANCE
public IdentityEncoder()
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 OutputStream getOutputStream(OutputStream os) throws IOException
EncodergetOutputStream in class Encoderos - The uncompressed stream.IOException - If any errors occur.public String[] getCodings()
["identity" ].getCodings in class EncoderCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.