|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ThreadLocal<Debug>
se.biltmore.tools.odttoapt.maven.plugin.Debug
public class Debug
Support class for handling debug messages.
| Field Summary | |
|---|---|
private boolean |
debug
Will only display debug message when this is true. |
private static Debug |
debugHandler
The debug handler instance. |
private PrintStream |
debugStream
The stream to write debug messages on. |
| Constructor Summary | |
|---|---|
private |
Debug()
Creates a new Debug instance. |
| Method Summary | |
|---|---|
private void |
_message(String message)
Displays a debug message without line termination. |
private void |
_messagln(String message)
Displays a debug message. |
private void |
_stackTrace(Exception e)
Displays a stack trace of the specified exception. |
static void |
initialize(boolean debug,
OutputStream debugStream)
Initialized Debug. |
Debug |
initialValue()
Creates the thread local instance. |
static void |
message(String message)
Displays a debug message without line termination. |
static void |
messagln(String message)
Displays a debug message. |
private void |
setDebug(boolean debug)
Sets the debug output flag. |
private void |
setDebugStream(OutputStream debugStream)
Sets the stream to write debug messages on. |
static void |
stackTrace(Exception e)
Displays a stack trace of the specified exception. |
| Methods inherited from class java.lang.ThreadLocal |
|---|
get, remove, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean debug
private PrintStream debugStream
private static Debug debugHandler
| Constructor Detail |
|---|
private Debug()
| Method Detail |
|---|
private void setDebug(boolean debug)
debug - true to display debug messages.private void setDebugStream(OutputStream debugStream)
debugStream - The stream to set.
public static void initialize(boolean debug,
OutputStream debugStream)
debug - true to enable debug messages.debugStream - The stream to write debug messages on.public Debug initialValue()
initialValue in class ThreadLocal<Debug>private void _message(String message)
message - The debug message to display.private void _messagln(String message)
message - The debug message to display.private void _stackTrace(Exception e)
e - The exception to show stack trace for.public static void message(String message)
message - The debug message to display.public static void messagln(String message)
message - The debug message to display.public static void stackTrace(Exception e)
e - The exception to show stack trace for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||