public class GzipCompressionCodec extends AbstractCompressionCodec implements CompressionCodec
| Constructor and Description |
|---|
GzipCompressionCodec() |
| 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.
|
java.lang.String |
getAlgorithmName() |
compress, decompressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompress, decompresspublic java.lang.String getAlgorithmName()
getAlgorithmName in interface CompressionCodecprotected byte[] doCompress(byte[] payload)
throws java.io.IOException
AbstractCompressionCodecdoCompress in class AbstractCompressionCodecpayload - the bytes to compressjava.io.IOException - if the compression causes an IOExceptionprotected byte[] doDecompress(byte[] compressed)
throws java.io.IOException
AbstractCompressionCodecdoDecompress in class AbstractCompressionCodeccompressed - compressed bytesjava.io.IOException - if the decompression runs into an IO problemCopyright © 2014-2022 jsonwebtoken.io. All Rights Reserved.