|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.io.PrintStreamReporter
public class PrintStreamReporter
This implementation of ReporterInterface streams output using separate PrintStreams for println and debug messages, and warning and debug messages. These streams are set to System.out and and System.err when using the default constructor. Calls to a Reporter instance methods are synchronized. The warning and error methods output stack trace information (if available).
| Field Summary | |
|---|---|
protected static java.lang.String |
DEBUG_AFTER
|
protected static java.lang.String |
DEBUG_BEFORE
|
protected java.io.PrintStream |
err
|
protected static java.lang.String |
ERROR_AFTER
|
protected static java.lang.String |
ERROR_BEFORE
|
protected java.io.PrintStream |
out
|
protected static java.lang.String |
PRINTLN_AFTER
|
protected static java.lang.String |
PRINTLN_BEFORE
|
protected java.lang.Object |
synchObject
|
protected static java.lang.String |
WARNING_AFTER
|
protected static java.lang.String |
WARNING_BEFORE
|
| Constructor Summary | |
|---|---|
PrintStreamReporter()
|
|
| 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 static final java.lang.String DEBUG_BEFORE
protected static final java.lang.String DEBUG_AFTER
protected static final java.lang.String ERROR_BEFORE
protected static final java.lang.String ERROR_AFTER
protected static final java.lang.String PRINTLN_BEFORE
protected static final java.lang.String PRINTLN_AFTER
protected static final java.lang.String WARNING_BEFORE
protected static final java.lang.String WARNING_AFTER
protected java.lang.Object synchObject
protected java.io.PrintStream out
protected java.io.PrintStream err
| Constructor Detail |
|---|
public PrintStreamReporter()
| 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 | ||||||||