|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.io.OutputStreamReporter
public class OutputStreamReporter
This uses an OutputStream for directing reporting information. Output may be lost if the OutputStream throws an IOException.
| Field Summary | |
|---|---|
protected byte[] |
endOfLine
|
protected java.io.OutputStream |
err
|
protected java.io.OutputStream |
out
|
protected byte[] |
synchObject
|
| Constructor Summary | |
|---|---|
OutputStreamReporter(java.io.OutputStream out)
Constructor for combined println, debug, warning, and error output to one OutputStream. |
|
OutputStreamReporter(java.io.OutputStream out,
java.io.OutputStream err)
Constructor for sending println, debug reporting to one OutputStream, and warning and error output to another OutputStream. |
|
OutputStreamReporter(java.io.OutputStream out,
java.io.OutputStream err,
java.lang.String lineSeparator)
Constructor for sending println, debug reporting to one OutputStream, and warning and error output to another OutputStream. |
|
| Method Summary | |
|---|---|
void |
debug(java.lang.Object objectRef,
java.lang.String message)
Use this method to report an event for debugging. |
void |
error(java.lang.Object objectRef,
java.lang.String message)
Use this method to report a critical error with an Exception. |
void |
error(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
Use this method to report a critical error message. |
void |
println(java.lang.Object objectRef,
java.lang.String message)
Use this method to report an event message. |
void |
warning(java.lang.Object objectRef,
java.lang.String message)
Use this method to report a warning message. |
void |
warning(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
Use this method to report a warning message with an Exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final byte[] synchObject
protected java.io.OutputStream out
protected java.io.OutputStream err
protected byte[] endOfLine
| Constructor Detail |
|---|
public OutputStreamReporter(java.io.OutputStream out)
out - The OutputStream to be used for all reporting output.
public OutputStreamReporter(java.io.OutputStream out,
java.io.OutputStream err)
out - The OutputStream to be used for println and debug output.err - The OutputStream to be used for warning and error output.
public OutputStreamReporter(java.io.OutputStream out,
java.io.OutputStream err,
java.lang.String lineSeparator)
out - The OutputStream to be used for println and debug output.err - The OutputStream to be used for warning and error output.lineSeparator - Contains the sequence of bytes to be sent when the end of a line has been reached.| Method Detail |
|---|
public void debug(java.lang.Object objectRef,
java.lang.String message)
debug in interface ReporterInterface
public void warning(java.lang.Object objectRef,
java.lang.String message)
warning in interface ReporterInterface
public void warning(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
warning in interface ReporterInterface
public void error(java.lang.Object objectRef,
java.lang.String message)
error in interface ReporterInterface
public void error(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
error in interface ReporterInterface
public void println(java.lang.Object objectRef,
java.lang.String message)
println in interface ReporterInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||