| java.lang.Object org.apache.cactus.internal.util.StringUtil
StringUtil | public class StringUtil (Code) | | Various utility methods for string manipulation.
version: $Id: StringUtil.java 239169 2005-05-05 09:21:54Z vmassol $ |
exceptionToString | public static String exceptionToString(Throwable theThrowable)(Code) | | Returns the stack trace of an exception as String.
Parameters: theThrowable - the exception from which to extract the stack traceas a String the exception stack trace as a String |
exceptionToString | public static String exceptionToString(Throwable theThrowable, String[] theFilterPatterns)(Code) | | Returns the stack trace of an exception as String, optionally filtering
out line from the stack trac
Parameters: theThrowable - the exception from which to extract the stack traceas a String Parameters: theFilterPatterns - Array containing a list of patterns to filter out from the stack trace the exception stack trace as a String |
filterLine | public static boolean filterLine(String theLine, String[] theFilterPatterns)(Code) | | Parameters: theLine - The line to check Parameters: theFilterPatterns - The patterns to filter out boolean Whether the specified line should be filtered from thestack trace |
filterStackTrace | static String filterStackTrace(String theStackTrace, String[] theFilterPatterns)(Code) | | Parameters: theStackTrace - The original, unfiltered stack trace Parameters: theFilterPatterns - The patterns to filter out The filtered stack trace |
replace | public static String replace(String theBaseString, char theChar, String theNewString)(Code) | | Replaces a character in a string by a substring.
Parameters: theBaseString - the base string in which to perform replacements Parameters: theChar - the char to look for Parameters: theNewString - the string with which to replace the char the string with replacements done or null if the input stringwas null |
|
|