|
||||||||||
| 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 | ||
|---|---|---|
|
deSerialize(byte[] data)
Uses default de-serialization to turn a byte array into an object. |
|
protected
|
deserializeObject(byte[] decompressedByteArray)
Does the standard deserialization. |
|
|
serialize(T obj)
Serializes an object using default serialization. |
|
protected
|
serializeObject(T 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 <T extends Serializable> byte[] serialize(T obj)
throws IOException
serialize in interface IElementSerializerobj - object
IOException - on i/o problem
protected <T extends Serializable> byte[] serializeObject(T obj)
throws IOException
obj - object
IOException - on i/o problem
public <T extends Serializable> T deSerialize(byte[] data)
throws IOException,
ClassNotFoundException
deSerialize in interface IElementSerializerdata - bytes of data
IOException - on i/o problem
ClassNotFoundException - if class is not found during deserialization
protected <T extends Serializable> T 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 | |||||||||