public class DeflateCompressionCodec extends AbstractCompressionCodec
| Constructor and Description |
|---|
DeflateCompressionCodec() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
doCompress(byte[] payload)
Implement this method to do the actual work of compressing the payload
|
protected byte[] |
doDecompress(byte[] compressed)
Implement this method to do the actual work of decompressing the compressed bytes.
|
String |
getAlgorithmName() |
compress, decompresspublic String getAlgorithmName()
protected byte[] doCompress(byte[] payload)
throws IOException
AbstractCompressionCodecdoCompress in class AbstractCompressionCodecpayload - the bytes to compressIOException - if the compression causes an IOExceptionprotected byte[] doDecompress(byte[] compressed)
throws IOException
AbstractCompressionCodecdoDecompress in class AbstractCompressionCodeccompressed - compressed bytesIOException - if the decompression runs into an IO problemCopyright © 2014–2022 jsonwebtoken.io. All rights reserved.