|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.szegedi.spring.web.jsflow.codec.CompressionCodec
public class CompressionCodec
A codec that will compress the serialized flowstate upon encoding and
decompress it upon decoding. In particular useful as
part of a CompositeCodec, in
front of a ConfidentialityCodec,
as compression improves the security of the encryption.
| Constructor Summary | |
|---|---|
CompressionCodec()
|
|
| Method Summary | |
|---|---|
OneWayCodec |
createDecoder()
Create a one-way single-threaded, nonshared codec instance able to decode a state as received from the client or from an upstream codec. |
OneWayCodec |
createEncoder()
Create a one-way single-threaded, nonshared codec instance able to encode a state as should be sent to a client or a downstream codec. |
void |
setCompressionLevel(int compressionLevel)
Sets the compression level - see Deflater compression level
constants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompressionCodec()
| Method Detail |
|---|
public void setCompressionLevel(int compressionLevel)
Deflater compression level
constants.
compressionLevel - a compression level. Defaults to
Deflater.DEFAULT_COMPRESSION.
public OneWayCodec createDecoder()
throws java.lang.Exception
BinaryStateCodec
createDecoder in interface BinaryStateCodecjava.lang.Exception
public OneWayCodec createEncoder()
throws java.lang.Exception
BinaryStateCodec
createEncoder in interface BinaryStateCodecjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||