|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbsharp.tracing.Trace
public class Trace
A useful collection of commonly used tracing functionality including: All trace messages are sychronized so messages from different threads don't interleave All trace messages are flush()-ed for convenience All Trace messages are prepened with the current classname and method. A method to get the current method name A method to get a classes 'simpleName' not availible until Java 1.5 A method to print out all the current running threads.
| Method Summary | |
|---|---|
static java.lang.String |
arrayToString(java.lang.Object[] array)
|
static void |
errPrintln(java.lang.String message)
Prints message to System.err. |
static void |
errPrintlnP(java.lang.String message)
Prints message to System.err. |
static java.lang.String |
getClassSimpleName(java.lang.Class aClass)
Get the string representation of a Classes 'simple name' with Java 1.1 compatibility. |
static java.lang.String |
getCurrentClassAndMethodName()
Return the name of class and method that called getCurrentMethodName. |
static java.lang.String |
getCurrentClassAndMethodName(int depth)
Return the name of class and method that called getCurrentMethodName. |
static java.lang.String |
getCurrentMethodName()
Return the name of the routine that called getCurrentMethodName. |
static java.lang.String |
getCurrentMethodName(int depth)
Return the name of the routine that called getCurrentMethodName. |
static void |
println(java.lang.String message)
Prints a message, synchronized. |
static void |
printlnP(java.lang.String message)
Prints a message, synchronized, and Prefixed with Class and method name. |
static void |
printThreads()
Prints out the currently running threads. |
static void |
printThreadsP()
Prints out the currently running threads, Prefixed with current class and method name. |
static void |
traceHex(byte[] data)
Trace a byte array in hex, synchronized. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getClassSimpleName(java.lang.Class aClass)
public static void println(java.lang.String message)
public static void printlnP(java.lang.String message)
public static void errPrintln(java.lang.String message)
public static void errPrintlnP(java.lang.String message)
public static void printThreads()
public static void printThreadsP()
public static java.lang.String getCurrentMethodName()
public static java.lang.String getCurrentMethodName(int depth)
depth - where 0 is the method called getCurrentMethodName(),
1 is the method that called that etc.public static java.lang.String getCurrentClassAndMethodName()
public static java.lang.String getCurrentClassAndMethodName(int depth)
depth - where 0 is the method called getCurrentMethodName(),
1 is the method that called that etc.public static void traceHex(byte[] data)
data - public static java.lang.String arrayToString(java.lang.Object[] array)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||