com.caucho.hessian.io

Class JavaDeserializer


public class JavaDeserializer
extends AbstractMapDeserializer

Serializing an object for known object types.

Field Summary

private Constructor
_constructor
private Object[]
_constructorArgs
private HashMap
_fieldMap
private Method
_readResolve
private Class
_type

Constructor Summary

JavaDeserializer(Class cl)

Method Summary

protected HashMap
getFieldMap(Class cl)
Creates a map of the classes fields.
protected static Object
getParamArg(Class cl)
Creates a map of the classes fields.
Class
getType()
protected Object
instantiate()
Object
readMap(AbstractHessianInput in)
Object
readMap(AbstractHessianInput in, Object obj)
private Object
resolve(Object obj)

Methods inherited from class com.caucho.hessian.io.AbstractMapDeserializer

readObject

Methods inherited from class com.caucho.hessian.io.Deserializer

getType, readList, readMap, readObject

Field Details

_constructor

private Constructor _constructor

_constructorArgs

private Object[] _constructorArgs

_fieldMap

private HashMap _fieldMap

_readResolve

private Method _readResolve

_type

private Class _type

Constructor Details

JavaDeserializer

public JavaDeserializer(Class cl)

Method Details

getFieldMap

protected HashMap getFieldMap(Class cl)
Creates a map of the classes fields.

getParamArg

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

getType

public Class getType()
Overrides:
getType in interface Deserializer

instantiate

protected Object instantiate()
            throws Exception

readMap

public Object readMap(AbstractHessianInput in)
            throws IOException
Overrides:
readMap in interface Deserializer

readMap

public Object readMap(AbstractHessianInput in,
                      Object obj)
            throws IOException

resolve

private Object resolve(Object obj)