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.
|
String |
getAlgorithmName()
The algorithm name to use as the JWT's
calg header value. |
compress, decompressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompress, decompresspublic String getAlgorithmName()
CompressionCodeccalg header value.getAlgorithmName in interface CompressionCodeccalg header value.protected byte[] doDecompress(byte[] compressed)
throws IOException
AbstractCompressionCodecdoDecompress in class AbstractCompressionCodeccompressed - compressed bytesIOException - if the decompression runs into an IO problemprotected byte[] doCompress(byte[] payload)
throws IOException
AbstractCompressionCodecdoCompress in class AbstractCompressionCodecpayload - the bytes to compressIOException - if the compression causes an IOExceptionCopyright © 2015. All rights reserved.