public class Identity extends Object implements Compressor, DeCompressor
Do not use the spi
| Modifier and Type | Field and Description |
|---|---|
static Identity |
IDENTITY |
static String |
MESSAGE_ENCODING |
NONENONE| Constructor and Description |
|---|
Identity() |
| 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 MESSAGE_ENCODING
public static final Identity IDENTITY
public String getMessageEncoding()
MessageEncodinggetMessageEncoding in interface MessageEncodingpublic byte[] compress(byte[] payloadByteArr)
Compressorcompress in interface CompressorpayloadByteArr - payload byte arraypublic byte[] decompress(byte[] payloadByteArr)
DeCompressordecompress in interface DeCompressorpayloadByteArr - payload byte arrayCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.