public class GzipCompressionCodec extends Object implements CompressionCodec
Modifier and Type | Field and Description |
---|---|
static String |
CODEC_NAME |
Constructor and Description |
---|
GzipCompressionCodec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compressBytes(byte[] header,
byte[] data) |
byte[] |
compressString(byte[] header,
String data) |
byte[] |
decompressToBytes(DataInputStream dais) |
String |
decompressToString(DataInputStream dais) |
public static final String CODEC_NAME
public GzipCompressionCodec()
public byte[] compressBytes(byte[] header, byte[] data) throws IOException
compressBytes
in interface CompressionCodec
IOException
public byte[] compressString(byte[] header, String data) throws IOException
compressString
in interface CompressionCodec
IOException
public String decompressToString(DataInputStream dais) throws IOException
decompressToString
in interface CompressionCodec
IOException
public byte[] decompressToBytes(DataInputStream dais) throws IOException
decompressToBytes
in interface CompressionCodec
IOException
Copyright © 2018 Apache Software Foundation. All rights reserved.