com.caucho.hessian.io
Class UnsafeSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by com.caucho.hessian.io.UnsafeSerializer
All Implemented Interfaces:
Serializer
Direct Known Subclasses:
UnsafeUnsharedSerializer

public class UnsafeSerializer
extends AbstractSerializer

Serializing an object for known object types.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
NULL
 
Constructor Summary
UnsafeSerializer(java.lang.Class<?> cl)
           
 
Method Summary
static UnsafeSerializer create(java.lang.Class<?> cl)
           
protected  void introspect(java.lang.Class<?> cl)
           
static boolean isEnabled()
           
 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

UnsafeSerializer

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

isEnabled

public static boolean isEnabled()

create

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

introspect

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

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 final void writeInstance(java.lang.Object obj,
                                AbstractHessianOutput out)
                         throws java.io.IOException
Overrides:
writeInstance in class AbstractSerializer
Throws:
java.io.IOException