|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.utils.serialization.CompressingSerializer
public class CompressingSerializer
Performs default serialization and de-serialization. It gzips the value.
Constructor Summary | |
---|---|
CompressingSerializer()
|
Method Summary | |
---|---|
Object |
deSerialize(byte[] data)
Uses default de-serialization to turn a byte array into an object. |
protected Object |
deserializeObject(byte[] decompressedByteArray)
Does the standard deserialization. |
byte[] |
serialize(Serializable obj)
Serializes an object using default serilaization. |
protected byte[] |
serializeObject(Serializable obj)
Does the basic serialization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompressingSerializer()
Method Detail |
---|
public byte[] serialize(Serializable obj) throws IOException
serialize
in interface IElementSerializer
obj
- object
IOException
- on i/o problemprotected byte[] serializeObject(Serializable obj) throws IOException
obj
- object
IOException
- on i/o problempublic Object deSerialize(byte[] data) throws IOException, ClassNotFoundException
deSerialize
in interface IElementSerializer
data
- bytes of data
IOException
- on i/o problem
ClassNotFoundException
- if class is not found during deserializationprotected Object deserializeObject(byte[] decompressedByteArray) throws IOException, ClassNotFoundException
decompressedByteArray
- array of decompressed bytes
IOException
- on i/o error
ClassNotFoundException
- if class is not found during deserialization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |