public class Gzip extends Object implements Compressor, DeCompressor
| Modifier and Type | Field and Description |
|---|---|
static String |
GZIP |
NONENONE| Constructor and Description |
|---|
Gzip() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] payloadByteArr)
compress payload
|
byte[] |
decompress(byte[] payloadByteArr)
decompress payload
|
String |
getMessageEncoding()
message encoding of current compressor
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompressorgetCompressorpublic static final String GZIP
public String getMessageEncoding()
MessageEncodinggetMessageEncoding in interface MessageEncodingpublic byte[] compress(byte[] payloadByteArr)
throws RpcException
Compressorcompress in interface CompressorpayloadByteArr - payload byte arrayRpcExceptionpublic byte[] decompress(byte[] payloadByteArr)
throws RpcException
DeCompressordecompress in interface DeCompressorpayloadByteArr - payload byte arrayRpcExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.