|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.freeshell.zs.common.Debug
public class Debug
Perform debugging-related operations.
| Constructor Summary | |
|---|---|
Debug()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getStackTraceString(java.lang.Exception ex)
Get a string representation of the stack trace for the specified exception. |
static java.lang.String |
getSystemInformationString()
Get a string representation of the system information (OS, JRE, JVM). |
static java.lang.String |
getSystemProperty(java.lang.String key)
Get the specified system property, without throwing any exceptions. |
static void |
p(java.lang.Object o)
Print the string representation of the specified object to the standard error output stream. |
static void |
pt(java.lang.Object o)
Print the string representation of the specified object to the standard error output stream, with a timestamp. |
static void |
setSystemProperty(java.lang.String key,
java.lang.String value)
Set the specified system property, without throwing any exceptions. |
static void |
sleep(long millis)
Sleep for the specified number of milliseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Debug()
| Method Detail |
|---|
public static void p(java.lang.Object o)
o - object to the printedpublic static void pt(java.lang.Object o)
o - object to the printedpublic static java.lang.String getStackTraceString(java.lang.Exception ex)
ex - exception
public static java.lang.String getSystemInformationString()
public static java.lang.String getSystemProperty(java.lang.String key)
key - key of the system property to be obtained
public static void setSystemProperty(java.lang.String key,
java.lang.String value)
key - key of the system property to be setvalue - value of the system propertypublic static void sleep(long millis)
millis - number of milliseconds to sleep
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||