|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.townleyenterprises.trace.SystemTraceStream
This class provides a TraceStream implementation which is based on System.err and is the default trace stream used unless otherwise configured.
| Method Summary | |
void |
close()
This method closes the trace stream. |
static TraceStream |
getInstance()
This is the singleton's factory method for creating or obtaining a reference. |
java.io.PrintStream |
getPrintStream()
This method returns the print stream associated with this output. |
void |
print(java.lang.Object message)
This method writes the message to the trace output, but doesn't include the newline. |
void |
println(java.lang.Object message)
This method writes a line to the trace output. |
void |
printStackTrace(java.lang.Throwable ex)
This method is used to write an exception's stack trace to the trace output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static TraceStream getInstance()
public void print(java.lang.Object message)
print in interface TraceStreammessage - the message to writepublic void println(java.lang.Object message)
println in interface TraceStreammessage - the message to writepublic void printStackTrace(java.lang.Throwable ex)
printStackTrace in interface TraceStreamex - the exception to printpublic java.io.PrintStream getPrintStream()
getPrintStream in interface TraceStreampublic void close()
close in interface TraceStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||