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 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 Hessian2Inputunwrap(Hessian2Input in)Unwrap the Hessian input stream with this envelope.abstract Hessian2InputunwrapHeaders(Hessian2Input in)Unwrap the envelope after having read the envelope code ('E') and the envelope method.abstract Hessian2Outputwrap(Hessian2Output out)Wrap the Hessian output stream in an envelope.
-
-
-
Method Detail
-
wrap
public abstract Hessian2Output wrap(Hessian2Output out) throws IOException
Wrap the Hessian output stream in an envelope.- Throws:
IOException
-
unwrap
public abstract Hessian2Input unwrap(Hessian2Input in) throws 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:
IOException
-
unwrapHeaders
public abstract Hessian2Input unwrapHeaders(Hessian2Input in) throws 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:
IOException
-
-