org.fuin.serialver4j.hessian
Class BaseSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by org.fuin.serialver4j.hessian.BaseSerializer
All Implemented Interfaces:
com.caucho.hessian.io.Serializer
Direct Known Subclasses:
UUIDSerializer

public abstract class BaseSerializer
extends com.caucho.hessian.io.AbstractSerializer

Base class for serializing objects that support conversion into a string and back.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
log
 
Constructor Summary
BaseSerializer()
           
 
Method Summary
 void writeObject(Object obj, com.caucho.hessian.io.AbstractHessianOutput out)
           
protected abstract  void writeValue(com.caucho.hessian.io.AbstractHessianOutput out, Object obj)
          Writes the value to the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSerializer

public BaseSerializer()
Method Detail

writeObject

public final void writeObject(Object obj,
                              com.caucho.hessian.io.AbstractHessianOutput out)
                       throws IOException
Specified by:
writeObject in interface com.caucho.hessian.io.Serializer
Specified by:
writeObject in class com.caucho.hessian.io.AbstractSerializer
Throws:
IOException

writeValue

protected abstract void writeValue(com.caucho.hessian.io.AbstractHessianOutput out,
                                   Object obj)
                            throws IOException
Writes the value to the output.

Parameters:
out - Output to write to.
obj - Object to write.
Throws:
IOException - Error writing to the output.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.