public class IdentityEncoder extends Encoder
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
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 OutputStream getOutputStream(OutputStream os) throws IOException
Encoder
getOutputStream
in class Encoder
os
- The uncompressed stream.IOException
- If any errors occur.public String[] getCodings()
["identity" ]
.getCodings
in class Encoder
Copyright © 2018 Apache. All rights reserved.