com.caucho.hessian.io
Class AbstractDeserializer
java.lang.Object
com.caucho.hessian.io.AbstractDeserializer
- All Implemented Interfaces:
- Deserializer
- Direct Known Subclasses:
- AbstractListDeserializer, AbstractMapDeserializer, AbstractStreamDeserializer, AbstractStringValueDeserializer, BasicDeserializer, EnumDeserializer, InputStreamDeserializer, MBeanAttributeInfoDeserializer, MBeanConstructorInfoDeserializer, MBeanInfoDeserializer, MBeanNotificationInfoDeserializer, MBeanOperationInfoDeserializer, MBeanParameterInfoDeserializer, ObjectDeserializer, ObjectInstanceDeserializer, SqlDateDeserializer, ValueDeserializer
public class AbstractDeserializer
- extends Object
- implements Deserializer
Deserializing an object.
|
Field Summary |
static com.caucho.hessian.io.AbstractDeserializer.NullDeserializer |
NULL
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL
public static final com.caucho.hessian.io.AbstractDeserializer.NullDeserializer NULL
AbstractDeserializer
public AbstractDeserializer()
getType
public Class<?> getType()
- Specified by:
getType in interface Deserializer
isReadResolve
public boolean isReadResolve()
- Specified by:
isReadResolve in interface Deserializer
readObject
public Object readObject(AbstractHessianInput in)
throws IOException
- Specified by:
readObject in interface Deserializer
- Throws:
IOException
readList
public Object readList(AbstractHessianInput in,
int length)
throws IOException
- Specified by:
readList in interface Deserializer
- Throws:
IOException
readLengthList
public Object readLengthList(AbstractHessianInput in,
int length)
throws IOException
- Specified by:
readLengthList in interface Deserializer
- Throws:
IOException
readMap
public Object readMap(AbstractHessianInput in)
throws IOException
- Specified by:
readMap in interface Deserializer
- Throws:
IOException
createFields
public Object[] createFields(int len)
- Creates the field array for a class. The default
implementation returns a String[] array.
- Specified by:
createFields in interface Deserializer
- Parameters:
len - number of items in the array
- Returns:
- the new empty array
createField
public Object createField(String name)
- Creates a field value class. The default
implementation returns the String.
- Specified by:
createField in interface Deserializer
- Parameters:
len - number of items in the array
- Returns:
- the new empty array
readObject
public Object readObject(AbstractHessianInput in,
String[] fieldNames)
throws IOException
- Specified by:
readObject in interface Deserializer
- Throws:
IOException
readObject
public Object readObject(AbstractHessianInput in,
Object[] fields)
throws IOException
- Reads an object instance from the input stream
- Specified by:
readObject in interface Deserializer
- Parameters:
in - the input streamfields - the deserializer's own field marshal
- Returns:
- the new object
- Throws:
IOException
error
protected HessianProtocolException error(String msg)
codeName
protected String codeName(int ch)
Copyright © 2013. All Rights Reserved.