|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.openuat.util.DebugOutputStream
public class DebugOutputStream
This is a decorator for an OutputStream that will log every character written to the underlying stream at log4j trace level.
| Constructor Summary | |
|---|---|
DebugOutputStream(java.io.OutputStream realStream,
java.lang.String loggingName)
Initializes the decorator with the real stream. |
|
| Method Summary | |
|---|---|
void |
close()
Only passes through to realStream, no logging. |
void |
flush()
Only passes through to realStream, no logging. |
void |
write(byte[] arr)
Passes through to realStream, but logs. |
void |
write(byte[] arr,
int off,
int len)
Passes through to realStream, but logs. |
void |
write(int c)
Passes through to realStream, but logs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugOutputStream(java.io.OutputStream realStream,
java.lang.String loggingName)
realStream - The OutputStream to write to.loggingName - The class name to use for logging purposes. This
should be the full class name (including package) of
the calling class.| Method Detail |
|---|
public void write(int c)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] arr)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] arr,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||