|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.util.StringUtil
This class provides basic facilities for manipulating strings.
| Method Summary | |
protected static java.lang.String[] |
captureStackTrace(java.lang.Throwable throwable)
Captures the stack trace associated with this exception. |
static java.lang.String |
printStackTrace(java.lang.Throwable throwable)
Prints out the stack trace of a throwable to a string. |
static java.lang.String |
printStackTrace(java.lang.Throwable throwable,
boolean printCascading)
Prints out the stack trace of a throwable to a string. |
static java.lang.String |
printStackTrace(java.lang.Throwable throwable,
int depth)
Prints out the stack trace of a throwable to a string. |
static java.lang.String |
printStackTrace(java.lang.Throwable throwable,
int depth,
boolean printCascading)
Prints out the stack trace of a throwable to a string. |
static java.lang.String |
replaceSubString(java.lang.String original,
java.lang.String oldString,
java.lang.String newString)
Replace substrings of one string with another string and return altered string. |
protected static java.lang.String[] |
splitStackTrace(java.lang.String stackTrace)
Splits the stack trace given as a newline separated string into an array of stack frames. |
| Methods inherited from class java.lang.Object |
|
| Method Detail |
public static java.lang.String replaceSubString(java.lang.String original,
java.lang.String oldString,
java.lang.String newString)
original - input stringoldString - the substring section to replacenewString - the new substring replacing old substring sectionpublic static java.lang.String printStackTrace(java.lang.Throwable throwable)
throwable - The input
public static java.lang.String printStackTrace(java.lang.Throwable throwable,
boolean printCascading)
throwable - The inputprint - also the cascading exceptions
public static java.lang.String printStackTrace(java.lang.Throwable throwable,
int depth)
throwable - The inputHow - many stack events shoud be printed
public static java.lang.String printStackTrace(java.lang.Throwable throwable,
int depth,
boolean printCascading)
throwable - The inputHow - many stack events shoud be printedprint - also the cascading exceptionsprotected static java.lang.String[] captureStackTrace(java.lang.Throwable throwable)
protected static java.lang.String[] splitStackTrace(java.lang.String stackTrace)
stackTrace - the stack trace.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||