Package com.caucho.hessian.io

Examples of com.caucho.hessian.io.HessianDebugOutputStream


  public HessianSessionSerializer(OutputStream os,
                                  SerializerFactory factory)
  {
    if (log.isLoggable(Level.FINEST)) {
      os = new HessianDebugOutputStream(os, log, Level.FINEST);
    }
   
    _out = new Hessian2Output(os);
    _out.setSerializerFactory(factory);
  }
View Full Code Here


  public HmtpWriter()
  {
    _out = new Hessian2Output();
   
    if (log.isLoggable(Level.FINEST)) {
      _dOut = new HessianDebugOutputStream(log, Level.FINEST);
    }
  }
View Full Code Here

  @Override
  public void serialize(Object value, OutputStream os)
    throws IOException
  {
    if (log.isLoggable(Level.FINEST))
      os = new HessianDebugOutputStream(os, log, Level.FINEST);

    Hessian2Output hOut = new Hessian2Output(os);

    hOut.writeObject(value);
View Full Code Here

   * Inner class to avoid hard dependency on Hessian 3.1.3's HessianDebugOutputStream.
   */
  private static class DebugStreamFactory {

    public static OutputStream createDebugOutputStream(OutputStream os, PrintWriter debug) {
      return new HessianDebugOutputStream(os, debug);
    }
View Full Code Here

   * Inner class to avoid hard dependency on Hessian 3.1.3's HessianDebugOutputStream.
   */
  private static class DebugStreamFactory {

    public static OutputStream createDebugOutputStream(OutputStream os, PrintWriter debug) {
      return new HessianDebugOutputStream(os, debug);
    }
View Full Code Here

      PrintWriter dbg = createDebugPrintWriter();
      HessianDebugInputStream dIs = new HessianDebugInputStream(is, dbg);
      dIs.startTop2();
      is = dIs;
      HessianDebugOutputStream dOs = new HessianDebugOutputStream(os, dbg);
      dOs.startTop2();
      os = dOs;
    }

    HessianInputFactory.HeaderType header = _inputFactory.readHeader(is);
View Full Code Here

      if (this.debugLogger != null && this.debugLogger.isDebugEnabled()) {
        PrintWriter debugWriter = new PrintWriter(new CommonsLogWriter(this.debugLogger));
        @SuppressWarnings("resource")
        HessianDebugInputStream dis = new HessianDebugInputStream(inputStream, debugWriter);
        @SuppressWarnings("resource")
        HessianDebugOutputStream dos = new HessianDebugOutputStream(outputStream, debugWriter);
        dis.startTop2();
        dos.startTop2();
        isToUse = dis;
        osToUse = dos;
      }

      if (!isToUse.markSupported()) {
View Full Code Here

      if (this.debugLogger != null && this.debugLogger.isDebugEnabled()) {
        PrintWriter debugWriter = new PrintWriter(new CommonsLogWriter(this.debugLogger));
        HessianDebugInputStream dis = new HessianDebugInputStream(inputStream, debugWriter);
        dis.startTop2();
        HessianDebugOutputStream dos = new HessianDebugOutputStream(outputStream, debugWriter);
        dos.startTop2();
        isToUse = dis;
        osToUse = dos;
      }

      if (!isToUse.markSupported()) {
View Full Code Here

    OutputStream osToUse = outputStream;

    if (this.debugLogger != null && this.debugLogger.isDebugEnabled()) {
      PrintWriter debugWriter = new PrintWriter(new CommonsLogWriter(this.debugLogger));
      isToUse = new HessianDebugInputStream(inputStream, debugWriter);
      osToUse = new HessianDebugOutputStream(outputStream, debugWriter);
    }

    Hessian2Input in = new Hessian2Input(isToUse);
    if (this.serializerFactory != null) {
      in.setSerializerFactory(this.serializerFactory);
View Full Code Here

      PrintWriter dbg = createDebugPrintWriter();
      HessianDebugInputStream dIs = new HessianDebugInputStream(is, dbg);
      dIs.startTop2();
      is = dIs;
      HessianDebugOutputStream dOs = new HessianDebugOutputStream(os, dbg);
      dOs.startTop2();
      os = dOs;
    }

    HessianInputFactory.HeaderType header = _inputFactory.readHeader(is);
View Full Code Here

TOP

Related Classes of com.caucho.hessian.io.HessianDebugOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.