com.caucho.hessian.io
Class ObjectDeserializer
java.lang.Object
com.caucho.hessian.io.AbstractDeserializer
com.caucho.hessian.io.ObjectDeserializer
- All Implemented Interfaces:
- Deserializer
public class ObjectDeserializer
- extends AbstractDeserializer
Serializing an object for known object types.
Field Summary |
private java.lang.Class<?> |
_cl
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_cl
private java.lang.Class<?> _cl
ObjectDeserializer
public ObjectDeserializer(java.lang.Class<?> cl)
getType
public java.lang.Class<?> getType()
- Specified by:
getType
in interface Deserializer
- Overrides:
getType
in class AbstractDeserializer
readObject
public java.lang.Object readObject(AbstractHessianInput in)
throws java.io.IOException
- Specified by:
readObject
in interface Deserializer
- Overrides:
readObject
in class AbstractDeserializer
- Throws:
java.io.IOException
readObject
public java.lang.Object readObject(AbstractHessianInput in,
java.lang.Object[] fields)
throws java.io.IOException
- Description copied from class:
AbstractDeserializer
- Reads an object instance from the input stream
- Specified by:
readObject
in interface Deserializer
- Overrides:
readObject
in class AbstractDeserializer
- Parameters:
in
- the input streamfields
- the deserializer's own field marshal
- Returns:
- the new object
- Throws:
java.io.IOException
readList
public java.lang.Object readList(AbstractHessianInput in,
int length)
throws java.io.IOException
- Specified by:
readList
in interface Deserializer
- Overrides:
readList
in class AbstractDeserializer
- Throws:
java.io.IOException
readLengthList
public java.lang.Object readLengthList(AbstractHessianInput in,
int length)
throws java.io.IOException
- Specified by:
readLengthList
in interface Deserializer
- Overrides:
readLengthList
in class AbstractDeserializer
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright 2003-2011. All Rights Reserved.