public class AbstractDeserializer extends 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 String |
codeName(int ch) |
Object |
createField(String name)
Creates a field value class.
|
Object[] |
createFields(int len)
Creates the field array for a class.
|
protected HessianProtocolException |
error(String msg) |
Class<?> |
getType() |
boolean |
isReadResolve() |
Object |
readLengthList(AbstractHessianInput in,
int length) |
Object |
readList(AbstractHessianInput in,
int length) |
Object |
readMap(AbstractHessianInput in) |
Object |
readObject(AbstractHessianInput in) |
Object |
readObject(AbstractHessianInput in,
Object[] fields)
Reads an object instance from the input stream
|
Object |
readObject(AbstractHessianInput in,
String[] fieldNames) |
public static final com.caucho.hessian.io.AbstractDeserializer.NullDeserializer NULL
public Class<?> getType()
getType
in interface Deserializer
public boolean isReadResolve()
isReadResolve
in interface Deserializer
public Object readObject(AbstractHessianInput in) throws IOException
readObject
in interface Deserializer
IOException
public Object readList(AbstractHessianInput in, int length) throws IOException
readList
in interface Deserializer
IOException
public Object readLengthList(AbstractHessianInput in, int length) throws IOException
readLengthList
in interface Deserializer
IOException
public Object readMap(AbstractHessianInput in) throws IOException
readMap
in interface Deserializer
IOException
public Object[] createFields(int len)
createFields
in interface Deserializer
len
- number of items in the arraypublic Object createField(String name)
createField
in interface Deserializer
len
- number of items in the arraypublic Object readObject(AbstractHessianInput in, String[] fieldNames) throws IOException
readObject
in interface Deserializer
IOException
public Object readObject(AbstractHessianInput in, Object[] fields) throws IOException
readObject
in interface Deserializer
in
- the input streamfields
- the deserializer's own field marshalIOException
protected HessianProtocolException error(String msg)
protected String codeName(int ch)
Copyright © 2023. All rights reserved.