public class JavaDeserializer extends AbstractMapDeserializer
NULL
Constructor and Description |
---|
JavaDeserializer(java.lang.Class<?> cl) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createField(java.lang.String name)
Creates a field value class.
|
java.lang.Object[] |
createFields(int len)
Creates the field array for a class.
|
protected java.util.HashMap<java.lang.String,com.caucho.hessian.io.JavaDeserializer.FieldDeserializer> |
getFieldMap(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() |
boolean |
isReadResolve() |
java.lang.Object |
readMap(AbstractHessianInput in) |
java.lang.Object |
readMap(AbstractHessianInput in,
java.lang.Object obj) |
java.lang.Object |
readObject(AbstractHessianInput in,
java.lang.Object[] fields)
Reads an object instance from the input stream
|
java.lang.Object |
readObject(AbstractHessianInput in,
java.lang.Object obj,
java.lang.String[] fieldNames) |
java.lang.Object |
readObject(AbstractHessianInput in,
java.lang.String[] fieldNames) |
protected java.lang.Object |
resolve(AbstractHessianInput in,
java.lang.Object obj) |
readObject
codeName, error, readLengthList, readList
public java.lang.Class<?> getType()
getType
in interface Deserializer
getType
in class AbstractMapDeserializer
public boolean isReadResolve()
isReadResolve
in interface Deserializer
isReadResolve
in class AbstractDeserializer
public java.lang.Object readMap(AbstractHessianInput in) throws java.io.IOException
readMap
in interface Deserializer
readMap
in class AbstractDeserializer
java.io.IOException
public java.lang.Object[] createFields(int len)
AbstractDeserializer
createFields
in interface Deserializer
createFields
in class AbstractDeserializer
len
- number of items in the arraypublic java.lang.Object createField(java.lang.String name)
AbstractDeserializer
createField
in interface Deserializer
createField
in class AbstractDeserializer
name
- the field namepublic java.lang.Object readObject(AbstractHessianInput in, java.lang.Object[] fields) throws java.io.IOException
AbstractDeserializer
readObject
in interface Deserializer
readObject
in class AbstractDeserializer
in
- the input streamfields
- the deserializer's own field marshaljava.io.IOException
public java.lang.Object readObject(AbstractHessianInput in, java.lang.String[] fieldNames) throws java.io.IOException
readObject
in interface Deserializer
readObject
in class AbstractDeserializer
java.io.IOException
protected java.lang.reflect.Method getReadResolve(java.lang.Class<?> cl)
public java.lang.Object readMap(AbstractHessianInput in, java.lang.Object obj) throws java.io.IOException
java.io.IOException
public java.lang.Object readObject(AbstractHessianInput in, java.lang.Object obj, java.lang.String[] fieldNames) throws java.io.IOException
java.io.IOException
protected java.lang.Object resolve(AbstractHessianInput in, java.lang.Object obj) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object instantiate() throws java.lang.Exception
java.lang.Exception
protected java.util.HashMap<java.lang.String,com.caucho.hessian.io.JavaDeserializer.FieldDeserializer> getFieldMap(java.lang.Class cl)
protected static java.lang.Object getParamArg(java.lang.Class<?> cl)