public class CompressedSerializer extends java.lang.Object implements Serializer
Constructor and Description |
---|
CompressedSerializer()
Create a compressed serializer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserializeFromBytes(byte[] serializedObject)
Deserialize an object from a compressed array of bytes.
|
byte[] |
serializeToBytes(java.lang.Object object)
Serialize an object to a compressed array of bytes.
|
public CompressedSerializer()
public byte[] serializeToBytes(java.lang.Object object) throws java.io.IOException
serializeToBytes
in interface Serializer
object
- The object to serialize.java.io.IOException
public java.lang.Object deserializeFromBytes(byte[] serializedObject) throws java.io.IOException, java.lang.ClassNotFoundException
deserializeFromBytes
in interface Serializer
serializedObject
- Array of bytes containing a
compressed serialized object.java.io.IOException
java.lang.ClassNotFoundException