|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.io.PrintTrace
Standard output trace.
This is a simple encapsulation of a named PrintWriter
whose initialization is lazy.
Field Summary | |
java.lang.String |
name
Name of this trace, e.g. |
java.lang.String |
type
Type of this trace |
Method Summary | |
static java.lang.String |
example(java.lang.String example)
Draws an example from given file name and standard streams. |
static sam.io.PrintTrace |
make(java.lang.String trace,
java.lang.String type)
Creates an adequate printable trace. |
java.io.PrintWriter |
out()
Gets the output writer of this trace. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final java.lang.String name
public final java.lang.String type
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public static sam.io.PrintTrace make(java.lang.String trace, java.lang.String type)
trace
- either "stdout"
, "stderr"
or any valid writable file nametype
- a single-word description of the trace type, e.g. "log" or "skipped_entries"
Additionnally blank specification is an alias for Settings.Default.TRACE(type)
PrintTrace
or null
if errorpublic static java.lang.String example(java.lang.String example)
public java.io.PrintWriter out()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |