| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.tools.ant.util.StringUtils
A set of helper methods related to string manipulation.
| Field Summary | |
| static java.lang.String | LINE_SEPthe line separator for this OS | 
| Constructor Summary | |
| StringUtils() | |
| Method Summary | |
| static java.lang.String | getStackTrace(java.lang.Throwable t)Convenient method to retrieve the full stacktrace from a given exception. | 
| static java.util.Vector | lineSplit(java.lang.String data)Splits up a string into a list of lines. | 
| static java.lang.String | replace(java.lang.String data,
        java.lang.String from,
        java.lang.String to)Replace occurrences into a string. | 
| static java.util.Vector | split(java.lang.String data,
      int ch)Splits up a string where elements are separated by a specific character and return all elements. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String LINE_SEP
| Constructor Detail | 
public StringUtils()
| Method Detail | 
public static java.util.Vector lineSplit(java.lang.String data)
data - the string to split up into lines.
public static java.util.Vector split(java.lang.String data,
                                     int ch)
data - the string to split up.ch - the separator character.
public static java.lang.String replace(java.lang.String data,
                                       java.lang.String from,
                                       java.lang.String to)
data - the string to replace occurrences intofrom - the occurrence to replace.to - the occurrence to be used as a replacement.
public static java.lang.String getStackTrace(java.lang.Throwable t)
t - the exception to get the stacktrace from.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||