Package com.caucho.hessian.io

Examples of com.caucho.hessian.io.HessianDebugInputStream$LogWriter


      if (cache.get(id, os)) {
        InputStream is = os.getInputStream();

        StringWriter writer = new StringWriter();

        HessianDebugInputStream dis
          = new HessianDebugInputStream(is, new PrintWriter(writer));

        while (dis.read() >= 0) {
        }

        return writer.toString();
      }
View Full Code Here


                                   
  public HessianSessionDeserializer(InputStream is,
                                    ClassLoader loader)
  {
    if (log.isLoggable(Level.FINEST)) {
      HessianDebugInputStream dis
        = new HessianDebugInputStream(is, log, Level.FINEST);
      log.finest("session serialized load data:");
      dis.setDepth(2);
      is = dis;
    }
 
    _in = new Hessian2Input(is);
    _in.setSerializerFactory(new SerializerFactory(loader));
View Full Code Here

  @Override
  public Object deserialize(InputStream is)
    throws IOException
  {
    if (log.isLoggable(Level.FINEST))
      is = new HessianDebugInputStream(is, log, Level.FINEST);

    Hessian2Input hIn = new Hessian2Input(is);

    Object value = hIn.readObject();
View Full Code Here

    InputStream isToUse = inputStream;
    OutputStream osToUse = outputStream;

    if (this.debugLogger != null && this.debugLogger.isDebugEnabled()) {
      PrintWriter debugWriter = new PrintWriter(new CommonsLogWriter(this.debugLogger));
      isToUse = new HessianDebugInputStream(inputStream, debugWriter);
      if (debugOutputStreamAvailable) {
        osToUse = DebugStreamFactory.createDebugOutputStream(outputStream, debugWriter);
      }
    }
View Full Code Here

    InputStream isToUse = inputStream;
    OutputStream osToUse = outputStream;

    if (this.debugLogger != null && this.debugLogger.isDebugEnabled()) {
      PrintWriter debugWriter = new PrintWriter(new CommonsLogWriter(this.debugLogger));
      isToUse = new HessianDebugInputStream(inputStream, debugWriter);
      if (debugOutputStreamAvailable) {
        osToUse = DebugStreamFactory.createDebugOutputStream(outputStream, debugWriter);
      }
    }
View Full Code Here

    if (isDebugInvoke()) {
      isDebug = true;

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

      InputStream isToUse = inputStream;
      OutputStream osToUse = outputStream;

      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;
      }
View Full Code Here

      InputStream isToUse = inputStream;
      OutputStream osToUse = outputStream;

      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;
      }
View Full Code Here

    InputStream isToUse = inputStream;
    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) {
View Full Code Here

  public AbstractHessianInput getHessian1Input(InputStream is)
  {
    AbstractHessianInput in;

    if (_isDebug)
      is = new HessianDebugInputStream(is, new PrintWriter(System.out));

    in = new HessianInput(is);

    in.setRemoteResolver(getRemoteResolver());
View Full Code Here

TOP

Related Classes of com.caucho.hessian.io.HessianDebugInputStream$LogWriter

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.