public interface Deserializer
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
createField(String name)
Returns the deserializer's field reader for the given name.
|
Object[] |
createFields(int len)
Creates an empty array for the deserializers field
entries.
|
Class<?> |
getType() |
boolean |
isReadResolve() |
Object |
readLengthList(AbstractHessianInput in,
int length) |
Object |
readLengthList(AbstractHessianInput in,
int length,
Class<?> expectType)
deserialize list object from expect type.
|
Object |
readList(AbstractHessianInput in,
int length) |
Object |
readList(AbstractHessianInput in,
int length,
Class<?> expectType)
deserialize list object from expect type.
|
Object |
readMap(AbstractHessianInput in) |
Object |
readMap(AbstractHessianInput in,
Class<?> expectKeyType,
Class<?> expectValueType)
deserialize map object from expect key and value type.
|
Object |
readObject(AbstractHessianInput in) |
Object |
readObject(AbstractHessianInput in,
Object[] fields)
Reads the object from the input stream, given the field
definition.
|
Object |
readObject(AbstractHessianInput in,
String[] fieldNames) |
Class<?> getType()
boolean isReadResolve()
Object readObject(AbstractHessianInput in) throws IOException
IOExceptionObject readList(AbstractHessianInput in, int length) throws IOException
IOExceptionObject readLengthList(AbstractHessianInput in, int length) throws IOException
IOExceptionObject readMap(AbstractHessianInput in) throws IOException
IOExceptionObject[] createFields(int len)
len - number of fields to be readObject createField(String name)
name - the field nameObject readObject(AbstractHessianInput in, Object[] fields) throws IOException
in - the input streamfields - the deserializer's own field marshalIOExceptionObject readObject(AbstractHessianInput in, String[] fieldNames) throws IOException
IOExceptionObject readList(AbstractHessianInput in, int length, Class<?> expectType) throws IOException
in - length - expectType - IOExceptionObject readLengthList(AbstractHessianInput in, int length, Class<?> expectType) throws IOException
in - length - expectType - IOExceptionObject readMap(AbstractHessianInput in, Class<?> expectKeyType, Class<?> expectValueType) throws IOException
in - expectKeyType - expectValueType - IOExceptionCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.