com.caucho.hessian.io
Class AbstractSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
All Implemented Interfaces:
Serializer
Direct Known Subclasses:
AbstractStreamSerializer, AnnotationSerializer, ArraySerializer, BasicSerializer, BeanSerializer, ByteArraySerializer, CalendarSerializer, ClassSerializer, CollectionSerializer, EnumerationSerializer, EnumSerializer, InputStreamSerializer, IteratorSerializer, JavaSerializer, LocaleSerializer, MapSerializer, ObjectHandleSerializer, RemoteSerializer, SqlDateSerializer, StringValueSerializer, UnsafeSerializer, WriteReplaceSerializer

public abstract class AbstractSerializer
extends java.lang.Object
implements Serializer

Serializing an object.


Field Summary
protected static java.util.logging.Logger log
           
static com.caucho.hessian.io.AbstractSerializer.NullSerializer NULL
           
 
Constructor Summary
AbstractSerializer()
           
 
Method Summary
protected  java.lang.Class<?> getClass(java.lang.Object obj)
           
protected  void writeDefinition20(java.lang.Class<?> cl, AbstractHessianOutput out)
           
protected  void writeInstance(java.lang.Object obj, AbstractHessianOutput out)
           
 void writeObject(java.lang.Object obj, AbstractHessianOutput out)
           
protected  void writeObject10(java.lang.Object obj, AbstractHessianOutput out)
           
protected  java.lang.Object writeReplace(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final com.caucho.hessian.io.AbstractSerializer.NullSerializer NULL

log

protected static final java.util.logging.Logger log
Constructor Detail

AbstractSerializer

public AbstractSerializer()
Method Detail

writeObject

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

writeReplace

protected java.lang.Object writeReplace(java.lang.Object obj)

getClass

protected java.lang.Class<?> getClass(java.lang.Object obj)

writeObject10

protected void writeObject10(java.lang.Object obj,
                             AbstractHessianOutput out)
                      throws java.io.IOException
Throws:
java.io.IOException

writeDefinition20

protected void writeDefinition20(java.lang.Class<?> cl,
                                 AbstractHessianOutput out)
                          throws java.io.IOException
Throws:
java.io.IOException

writeInstance

protected void writeInstance(java.lang.Object obj,
                             AbstractHessianOutput out)
                      throws java.io.IOException
Throws:
java.io.IOException