com.caucho.hessian.io
Class WriteReplaceSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by com.caucho.hessian.io.WriteReplaceSerializer
All Implemented Interfaces:
Serializer

public class WriteReplaceSerializer
extends AbstractSerializer

Serializing an object for known object types.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
NULL
 
Constructor Summary
WriteReplaceSerializer(java.lang.Class<?> cl, java.lang.ClassLoader loader, Serializer baseSerializer)
           
 
Method Summary
protected static java.lang.reflect.Method getWriteReplace(java.lang.Class cl)
          Returns the writeReplace method
protected static java.lang.reflect.Method getWriteReplace(java.lang.Class cl, java.lang.Class param)
          Returns the writeReplace method
 void writeObject(java.lang.Object obj, AbstractHessianOutput out)
           
protected  java.lang.Object writeReplace(java.lang.Object obj)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractSerializer
getClass, writeDefinition20, writeInstance, writeObject10
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteReplaceSerializer

public WriteReplaceSerializer(java.lang.Class<?> cl,
                              java.lang.ClassLoader loader,
                              Serializer baseSerializer)
Method Detail

getWriteReplace

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


getWriteReplace

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


writeObject

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

writeReplace

protected java.lang.Object writeReplace(java.lang.Object obj)
Overrides:
writeReplace in class AbstractSerializer