com.caucho.hessian.io
Class AbstractDeserializer
java.lang.Object
com.caucho.hessian.io.AbstractDeserializer
- All Implemented Interfaces:
- Deserializer
- Direct Known Subclasses:
- AbstractDeserializer.NullDeserializer, AbstractListDeserializer, AbstractMapDeserializer, AbstractStreamDeserializer, AbstractStringValueDeserializer, BasicDeserializer, EnumDeserializer, InputStreamDeserializer, MBeanAttributeInfoDeserializer, MBeanConstructorInfoDeserializer, MBeanInfoDeserializer, MBeanNotificationInfoDeserializer, MBeanOperationInfoDeserializer, MBeanParameterInfoDeserializer, ObjectDeserializer, ObjectInstanceDeserializer, SqlDateDeserializer, ValueDeserializer
public class AbstractDeserializer
- extends java.lang.Object
- implements Deserializer
Deserializing an object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL
public static final AbstractDeserializer.NullDeserializer NULL
AbstractDeserializer
public AbstractDeserializer()
getType
public java.lang.Class<?> getType()
- Specified by:
getType
in interface Deserializer
isReadResolve
public boolean isReadResolve()
- Specified by:
isReadResolve
in interface Deserializer
readObject
public java.lang.Object readObject(AbstractHessianInput in)
throws java.io.IOException
- Specified by:
readObject
in interface Deserializer
- Throws:
java.io.IOException
readList
public java.lang.Object readList(AbstractHessianInput in,
int length)
throws java.io.IOException
- Specified by:
readList
in interface Deserializer
- Throws:
java.io.IOException
readLengthList
public java.lang.Object readLengthList(AbstractHessianInput in,
int length)
throws java.io.IOException
- Specified by:
readLengthList
in interface Deserializer
- Throws:
java.io.IOException
readMap
public java.lang.Object readMap(AbstractHessianInput in)
throws java.io.IOException
- Specified by:
readMap
in interface Deserializer
- Throws:
java.io.IOException
createFields
public java.lang.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 java.lang.Object createField(java.lang.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 java.lang.Object readObject(AbstractHessianInput in,
java.lang.String[] fieldNames)
throws java.io.IOException
- Specified by:
readObject
in interface Deserializer
- Throws:
java.io.IOException
readObject
public java.lang.Object readObject(AbstractHessianInput in,
java.lang.Object[] fields)
throws java.io.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:
java.io.IOException
error
protected HessianProtocolException error(java.lang.String msg)
codeName
protected java.lang.String codeName(int ch)
Copyright 2003-2011. All Rights Reserved.