Class Hessian2Output

All Implemented Interfaces:
Hessian2Constants
Direct Known Subclasses:
HessianSerializerOutput

public class Hessian2Output extends AbstractHessianOutput implements Hessian2Constants
Output stream for Hessian 2 requests.

Since HessianOutput does not depend on any classes other than in the JDK, it can be extracted independently into a smaller package.

HessianOutput is unbuffered, so any client needs to provide its own buffering.

 OutputStream os = ...; // from http connection
 Hessian2Output out = new Hessian2Output(os);
 String value;

 out.startCall("hello", 1); // start hello call
 out.writeString("arg1");   // write a string argument
 out.completeCall();        // complete the call
 
  • Field Details

  • Constructor Details

    • Hessian2Output

      public Hessian2Output()
      Creates a new Hessian output stream, initialized with an underlying output stream.
      Parameters:
      os - the underlying output stream.
    • Hessian2Output

      public Hessian2Output(OutputStream os)
      Creates a new Hessian output stream, initialized with an underlying output stream.
      Parameters:
      os - the underlying output stream.
  • Method Details