public class GzipCompressionCodec extends AbstractCompressionCodec implements CompressionCodec
构造器和说明 |
---|
GzipCompressionCodec() |
限定符和类型 | 方法和说明 |
---|---|
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()
The algorithm name to use as the JWT's
calg header value. |
compress, decompress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compress, decompress
public java.lang.String getAlgorithmName()
CompressionCodec
calg
header value.getAlgorithmName
在接口中 CompressionCodec
calg
header value.protected byte[] doDecompress(byte[] compressed) throws java.io.IOException
AbstractCompressionCodec
doDecompress
在类中 AbstractCompressionCodec
compressed
- compressed bytesjava.io.IOException
- if the decompression runs into an IO problemprotected byte[] doCompress(byte[] payload) throws java.io.IOException
AbstractCompressionCodec
doCompress
在类中 AbstractCompressionCodec
payload
- the bytes to compressjava.io.IOException
- if the compression causes an IOException