com.caucho.hessian.io
Class AbstractStreamSerializer

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

public abstract class AbstractStreamSerializer
extends AbstractSerializer

Serializing an object containing a byte stream.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
log, NULL
 
Constructor Summary
AbstractStreamSerializer()
           
 
Method Summary
protected  java.lang.String getClassName(java.lang.Object obj)
           
protected abstract  java.io.InputStream getInputStream(java.lang.Object obj)
           
 void writeObject(java.lang.Object obj, AbstractHessianOutput out)
          Writes the object to the output stream.
 
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

AbstractStreamSerializer

public AbstractStreamSerializer()
Method Detail

writeObject

public void writeObject(java.lang.Object obj,
                        AbstractHessianOutput out)
                 throws java.io.IOException
Writes the object to the output stream.

Specified by:
writeObject in interface Serializer
Overrides:
writeObject in class AbstractSerializer
Throws:
java.io.IOException

getClassName

protected java.lang.String getClassName(java.lang.Object obj)

getInputStream

protected abstract java.io.InputStream getInputStream(java.lang.Object obj)
                                               throws java.io.IOException
Throws:
java.io.IOException