Package com.caucho.hessian.io
Class HessianEnvelope
- java.lang.Object
-
- 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
Constructors Constructor Description HessianEnvelope()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
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
-
-