com.caucho.distcache
Class HessianSerializer

java.lang.Object
  extended by com.caucho.distcache.HessianSerializer
All Implemented Interfaces:
CacheSerializer

public class HessianSerializer
extends java.lang.Object
implements CacheSerializer

Custom serialization for the cache


Constructor Summary
HessianSerializer()
           
 
Method Summary
 java.lang.Object deserialize(java.io.InputStream is)
          Deserialize the data
 void serialize(java.lang.Object value, java.io.OutputStream os)
          Serialize the data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianSerializer

public HessianSerializer()
Method Detail

serialize

public void serialize(java.lang.Object value,
                      java.io.OutputStream os)
               throws java.io.IOException
Serialize the data

Specified by:
serialize in interface CacheSerializer
Throws:
java.io.IOException

deserialize

public java.lang.Object deserialize(java.io.InputStream is)
                             throws java.io.IOException
Deserialize the data

Specified by:
deserialize in interface CacheSerializer
Throws:
java.io.IOException