com.caucho.hessian.io
Class ObjectDeserializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractDeserializer
      extended by com.caucho.hessian.io.ObjectDeserializer
All Implemented Interfaces:
Deserializer

public class ObjectDeserializer
extends AbstractDeserializer

Serializing an object for known object types.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractDeserializer
NULL
 
Constructor Summary
ObjectDeserializer(java.lang.Class<?> cl)
           
 
Method Summary
 java.lang.Class<?> getType()
           
 java.lang.Object readLengthList(AbstractHessianInput in, int length)
           
 java.lang.Object readList(AbstractHessianInput in, int length)
           
 java.lang.Object readObject(AbstractHessianInput in)
           
 java.lang.Object readObject(AbstractHessianInput in, java.lang.Object[] fields)
          Reads an object instance from the input stream
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.hessian.io.AbstractDeserializer
codeName, createField, createFields, error, isReadResolve, readMap, readObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectDeserializer

public ObjectDeserializer(java.lang.Class<?> cl)
Method Detail

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 stream
fields - 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