com.caucho.hessian.io
Class MapSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by com.caucho.hessian.io.MapSerializer
All Implemented Interfaces:
Serializer

public class MapSerializer
extends AbstractSerializer

Serializing a JDK 1.2 java.util.Map.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
log, NULL
 
Constructor Summary
MapSerializer()
           
 
Method Summary
 boolean getSendJavaType()
          Return true if the java type of the collection should be sent.
 void setSendJavaType(boolean sendJavaType)
          Set true if the java type of the collection should be sent.
 void writeObject(java.lang.Object obj, AbstractHessianOutput out)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractSerializer
getClass, writeDefinition20, writeInstance, writeObject10, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapSerializer

public MapSerializer()
Method Detail

setSendJavaType

public void setSendJavaType(boolean sendJavaType)
Set true if the java type of the collection should be sent.


getSendJavaType

public boolean getSendJavaType()
Return true if the java type of the collection should be sent.


writeObject

public void writeObject(java.lang.Object obj,
                        AbstractHessianOutput out)
                 throws java.io.IOException
Specified by:
writeObject in interface Serializer
Overrides:
writeObject in class AbstractSerializer
Throws:
java.io.IOException