net.sourceforge.hiveremoting.caucho
Class NonSerializableClassSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by net.sourceforge.hiveremoting.caucho.NonSerializableClassSerializer
All Implemented Interfaces:
com.caucho.hessian.io.Serializer

public class NonSerializableClassSerializer
extends com.caucho.hessian.io.AbstractSerializer

Serializing an object for known object types.


Constructor Summary
NonSerializableClassSerializer(java.lang.Class cl)
           
 
Method Summary
protected  java.lang.reflect.Method getWriteReplace(java.lang.Class cl)
          Returns the writeReplace method
 void writeInstance(java.lang.Object obj, com.caucho.hessian.io.AbstractHessianOutput out)
           
 void writeObject(java.lang.Object obj, com.caucho.hessian.io.AbstractHessianOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonSerializableClassSerializer

public NonSerializableClassSerializer(java.lang.Class cl)
Method Detail

getWriteReplace

protected java.lang.reflect.Method getWriteReplace(java.lang.Class cl)
Returns the writeReplace method


writeObject

public void writeObject(java.lang.Object obj,
                        com.caucho.hessian.io.AbstractHessianOutput out)
                 throws java.io.IOException
Specified by:
writeObject in interface com.caucho.hessian.io.Serializer
Specified by:
writeObject in class com.caucho.hessian.io.AbstractSerializer
Throws:
java.io.IOException

writeInstance

public void writeInstance(java.lang.Object obj,
                          com.caucho.hessian.io.AbstractHessianOutput out)
                   throws java.io.IOException
Throws:
java.io.IOException