类 Hessian2Output

  • 所有已实现的接口:
    Hessian2Constants

    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