org.apache.tools.ant.util
public final class StringUtils extends Object
| Field Summary | |
|---|---|
| static String | LINE_SEP the line separator for this OS |
| Method Summary | |
|---|---|
| static String | getStackTrace(Throwable t)
Convenient method to retrieve the full stacktrace from a given exception. |
| static Vector | lineSplit(String data)
Splits up a string into a list of lines. |
| static String | replace(String data, String from, String to)
Replace occurrences into a string. |
| static Vector | split(String data, int ch)
Splits up a string where elements are separated by a specific
character and return all elements. |
Parameters: t the exception to get the stacktrace from.
Returns: the stacktrace from the given exception.
Parameters: data the string to split up into lines.
Returns: the list of lines available in the string.
Parameters: data the string to replace occurrences into from the occurrence to replace. to the occurrence to be used as a replacement.
Returns: the new string with replaced occurrences.
Parameters: data the string to split up. ch the separator character.
Returns: the list of elements.