com.caucho.hessian.io
Class BeanDeserializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractDeserializer
      extended by com.caucho.hessian.io.AbstractMapDeserializer
          extended by com.caucho.hessian.io.BeanDeserializer
All Implemented Interfaces:
Deserializer

public class BeanDeserializer
extends AbstractMapDeserializer

Serializing an object for known object types.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractDeserializer
NULL
 
Constructor Summary
BeanDeserializer(java.lang.Class cl)
           
 
Method Summary
protected  java.util.HashMap getMethodMap(java.lang.Class cl)
          Creates a map of the classes fields.
protected static java.lang.Object getParamArg(java.lang.Class cl)
          Creates a map of the classes fields.
protected  java.lang.reflect.Method getReadResolve(java.lang.Class cl)
          Returns the readResolve method
 java.lang.Class getType()
           
protected  java.lang.Object instantiate()
           
 java.lang.Object readMap(AbstractHessianInput in)
           
 java.lang.Object readMap(AbstractHessianInput in, java.lang.Object obj)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractMapDeserializer
readObject
 
Methods inherited from class com.caucho.hessian.io.AbstractDeserializer
codeName, createField, createFields, error, isReadResolve, readLengthList, readList, readObject, readObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDeserializer

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

getType

public java.lang.Class getType()
Specified by:
getType in interface Deserializer
Overrides:
getType in class AbstractMapDeserializer

readMap

public java.lang.Object readMap(AbstractHessianInput in)
                         throws java.io.IOException
Specified by:
readMap in interface Deserializer
Overrides:
readMap in class AbstractDeserializer
Throws:
java.io.IOException

readMap

public java.lang.Object readMap(AbstractHessianInput in,
                                java.lang.Object obj)
                         throws java.io.IOException
Throws:
java.io.IOException

instantiate

protected java.lang.Object instantiate()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getReadResolve

protected java.lang.reflect.Method getReadResolve(java.lang.Class cl)
Returns the readResolve method


getMethodMap

protected java.util.HashMap getMethodMap(java.lang.Class cl)
Creates a map of the classes fields.


getParamArg

protected static java.lang.Object getParamArg(java.lang.Class cl)
Creates a map of the classes fields.