com.caucho.hessian.io
Class BeanSerializer

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

public class BeanSerializer
extends AbstractSerializer

Serializing an object for known object types.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
NULL
 
Constructor Summary
BeanSerializer(java.lang.Class<?> cl, java.lang.ClassLoader loader)
           
 
Method Summary
protected  java.lang.reflect.Method getWriteReplace(java.lang.Class cl)
          Returns the writeReplace method
protected  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)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractSerializer
getClass, writeDefinition20, writeInstance, writeObject10, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanSerializer

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

getWriteReplace

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


getWriteReplace

protected java.lang.reflect.Method getWriteReplace(java.lang.Class cl,
                                                   java.lang.Class param)
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