com.caucho.hessian.io
Class MapDeserializer

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

public class MapDeserializer
extends AbstractMapDeserializer

Deserializing a JDK 1.2 Map.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.hessian.io.AbstractDeserializer
AbstractDeserializer.NullDeserializer
 
Field Summary
private  java.lang.reflect.Constructor<?> _ctor
           
private  java.lang.Class<?> _type
           
 
Fields inherited from class com.caucho.hessian.io.AbstractDeserializer
NULL
 
Constructor Summary
MapDeserializer(java.lang.Class<?> type)
           
 
Method Summary
private  java.util.Map createMap()
           
 java.lang.Class<?> getType()
           
 java.lang.Object readMap(AbstractHessianInput in)
           
 java.lang.Object readObject(AbstractHessianInput in, java.lang.Object[] fields)
          Reads an object instance from the input stream
 
Methods inherited from class com.caucho.hessian.io.AbstractMapDeserializer
readObject
 
Methods inherited from class com.caucho.hessian.io.AbstractDeserializer
codeName, createField, createFields, error, isReadResolve, readLengthList, readList, readObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_type

private java.lang.Class<?> _type

_ctor

private java.lang.reflect.Constructor<?> _ctor
Constructor Detail

MapDeserializer

public MapDeserializer(java.lang.Class<?> type)
Method Detail

getType

public java.lang.Class<?> getType()
Specified by:
getType in interface Deserializer
Overrides:
getType in class AbstractMapDeserializer

readMap

public java.lang.Object readMap(AbstractHessianInput in)
                         throws java.io.IOException
Specified by:
readMap in interface Deserializer
Overrides:
readMap 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

createMap

private java.util.Map createMap()
                         throws java.io.IOException
Throws:
java.io.IOException


Copyright 2003-2011. All Rights Reserved.