public class AbstractDeserializer extends java.lang.Object implements Deserializer
Modifier and Type | Field and Description |
---|---|
static com.caucho.hessian.io.AbstractDeserializer.NullDeserializer |
NULL |
Constructor and Description |
---|
AbstractDeserializer() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
codeName(int ch) |
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 HessianProtocolException |
error(java.lang.String msg) |
java.lang.Class<?> |
getType() |
boolean |
isReadResolve() |
java.lang.Object |
readLengthList(AbstractHessianInput in,
int length) |
java.lang.Object |
readList(AbstractHessianInput in,
int length) |
java.lang.Object |
readMap(AbstractHessianInput in) |
java.lang.Object |
readObject(AbstractHessianInput in) |
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.String[] fieldNames) |
public static final com.caucho.hessian.io.AbstractDeserializer.NullDeserializer NULL
public java.lang.Class<?> getType()
getType
in interface Deserializer
public boolean isReadResolve()
isReadResolve
in interface Deserializer
public java.lang.Object readObject(AbstractHessianInput in) throws java.io.IOException
readObject
in interface Deserializer
java.io.IOException
public java.lang.Object readList(AbstractHessianInput in, int length) throws java.io.IOException
readList
in interface Deserializer
java.io.IOException
public java.lang.Object readLengthList(AbstractHessianInput in, int length) throws java.io.IOException
readLengthList
in interface Deserializer
java.io.IOException
public java.lang.Object readMap(AbstractHessianInput in) throws java.io.IOException
readMap
in interface Deserializer
java.io.IOException
public java.lang.Object[] createFields(int len)
createFields
in interface Deserializer
len
- number of items in the arraypublic java.lang.Object createField(java.lang.String name)
createField
in interface Deserializer
len
- number of items in the arraypublic java.lang.Object readObject(AbstractHessianInput in, java.lang.String[] fieldNames) throws java.io.IOException
readObject
in interface Deserializer
java.io.IOException
public java.lang.Object readObject(AbstractHessianInput in, java.lang.Object[] fields) throws java.io.IOException
readObject
in interface Deserializer
in
- the input streamfields
- the deserializer's own field marshaljava.io.IOException
protected HessianProtocolException error(java.lang.String msg)
protected java.lang.String codeName(int ch)