com.caucho.hessian.io
Class JavaSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by com.caucho.hessian.io.JavaSerializer
All Implemented Interfaces:
Serializer
Direct Known Subclasses:
JavaUnsharedSerializer, ThrowableSerializer

public class JavaSerializer
extends AbstractSerializer

Serializing an object for known object types.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
NULL
 
Constructor Summary
JavaSerializer(java.lang.Class<?> cl)
           
 
Method Summary
static Serializer create(java.lang.Class<?> cl)
           
protected static java.lang.reflect.Method getWriteReplace(java.lang.Class<?> cl)
          Returns the writeReplace method
protected  java.lang.reflect.Method getWriteReplace(java.lang.Class<?> cl, java.lang.Class<?> param)
          Returns the writeReplace method
protected  void introspect(java.lang.Class<?> cl)
           
 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)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractSerializer
getClass, writeDefinition20, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSerializer

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

create

public static Serializer create(java.lang.Class<?> cl)

introspect

protected void introspect(java.lang.Class<?> cl)

getWriteReplace

protected static java.lang.reflect.Method getWriteReplace(java.lang.Class<?> cl)
Returns the writeReplace method


getWriteReplace

protected java.lang.reflect.Method getWriteReplace(java.lang.Class<?> cl,
                                                   java.lang.Class<?> param)
Returns the writeReplace method


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

writeObject10

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

writeInstance

public void writeInstance(java.lang.Object obj,
                          AbstractHessianOutput out)
                   throws java.io.IOException
Overrides:
writeInstance in class AbstractSerializer
Throws:
java.io.IOException