com.caucho.hessian.io
Class HessianEnvelope

java.lang.Object
  extended by com.caucho.hessian.io.HessianEnvelope
Direct Known Subclasses:
Deflation, X509Encryption, X509Signature

public abstract class HessianEnvelope
extends java.lang.Object

Factory class for wrapping and unwrapping hessian streams.


Constructor Summary
HessianEnvelope()
           
 
Method Summary
abstract  Hessian2Input unwrap(Hessian2Input in)
          Unwrap the Hessian input stream with this envelope.
abstract  Hessian2Input unwrapHeaders(Hessian2Input in)
          Unwrap the envelope after having read the envelope code ('E') and the envelope method.
abstract  Hessian2Output wrap(Hessian2Output out)
          Wrap the Hessian output stream in an envelope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianEnvelope

public HessianEnvelope()
Method Detail

wrap

public abstract Hessian2Output wrap(Hessian2Output out)
                             throws java.io.IOException
Wrap the Hessian output stream in an envelope.

Throws:
java.io.IOException

unwrap

public abstract Hessian2Input unwrap(Hessian2Input in)
                              throws java.io.IOException
Unwrap the Hessian input stream with this envelope. It is an error if the actual envelope does not match the expected envelope class.

Throws:
java.io.IOException

unwrapHeaders

public abstract Hessian2Input unwrapHeaders(Hessian2Input in)
                                     throws java.io.IOException
Unwrap the envelope after having read the envelope code ('E') and the envelope method. Called by the EnvelopeFactory for dynamic reading of the envelopes.

Throws:
java.io.IOException