com.caucho.hessian.io
Class HessianDebugOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.hessian.io.HessianDebugOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class HessianDebugOutputStream
extends java.io.OutputStream

Debugging output stream for Hessian requests.


Nested Class Summary
(package private) static class HessianDebugOutputStream.LogWriter
           
 
Field Summary
private  java.io.OutputStream _os
           
private  HessianDebugState _state
           
 
Constructor Summary
HessianDebugOutputStream(java.io.OutputStream os, java.util.logging.Logger log, java.util.logging.Level level)
          Creates an uninitialized Hessian input stream.
HessianDebugOutputStream(java.io.OutputStream os, java.io.PrintWriter dbg)
          Creates an uninitialized Hessian input stream.
 
Method Summary
 void close()
          closes the stream.
 void flush()
           
 void startStreaming()
           
 void startTop2()
           
 void write(int ch)
          Writes a character.
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_os

private java.io.OutputStream _os

_state

private HessianDebugState _state
Constructor Detail

HessianDebugOutputStream

public HessianDebugOutputStream(java.io.OutputStream os,
                                java.io.PrintWriter dbg)
Creates an uninitialized Hessian input stream.


HessianDebugOutputStream

public HessianDebugOutputStream(java.io.OutputStream os,
                                java.util.logging.Logger log,
                                java.util.logging.Level level)
Creates an uninitialized Hessian input stream.

Method Detail

startTop2

public void startTop2()

startStreaming

public void startStreaming()

write

public void write(int ch)
           throws java.io.IOException
Writes a character.

Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
closes the stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException


Copyright 2003-2011. All Rights Reserved.