Method Summary |
|
public boolean | allEmpty(List list) Check to see if all the string objects passed
in are empty.
Parameters: list - A list of java.lang.String objects. |
public static String | capitalizeFirstLetter(String data)
Capitalize the first letter but leave the rest as they are. |
public static String | chop(String s, int i) Chop i characters off the end of a string.
This method assumes that any EOL characters in String s
and the platform EOL will be the same.
A 2 character EOL will count as 1 character.
Parameters: s - String to chop. Parameters: i - Number of characters to chop. |
public static String | chop(String s, int i, String eol) Chop i characters off the end of a string.
A 2 character EOL will count as 1 character.
Parameters: s - String to chop. Parameters: i - Number of characters to chop. Parameters: eol - A String representing the EOL (end of line). |
public static String | collapseNewlines(String argStr) Remove/collapse multiple newline characters.
Parameters: argStr - string to collapse newlines in. |
public static String | collapseSpaces(String argStr) Remove/collapse multiple spaces.
Parameters: argStr - string to remove multiple spaces from. |
public String | concat(List list) Concatenates a list of objects as a String.
Parameters: list - The list of objects to concatenate. |
public static String | fileContentsToString(String file) Read the contents of a file and place them in
a string object.
Parameters: file - path to file. |
public static String | firstLetterCaps(String data)
Makes the first letter caps and the rest lowercase. |
public static String | getPackageAsPath(String pckge) Return a package name as a relative path name
Parameters: pckge - package name to convert to a directory. |
final public static String | normalizePath(String path) Return a context-relative path, beginning with a "/", that represents
the canonical version of the specified path after ".." and "." elements
are resolved out. |
public static String | nullTrim(String s) Trim the string, but pass a null through. |
public static String | removeAndHump(String data)
'Camels Hump' replacement of underscores. |
public static String | removeAndHump(String data, String replaceThis)
'Camels Hump' replacement. |
public static String | removeUnderScores(String data)
Remove underscores from a string and replaces first
letters with capitals. |
public String | select(boolean state, String trueString, String falseString) If state is true then return the trueString, else
return the falseString. |
public static String[] | split(String line, String delim) |
final public static String | stackTrace(Throwable e) Returns the output of printStackTrace as a String.
Parameters: e - A Throwable. |
public static StringBuffer | stringSubstitution(String argStr, Hashtable vars) |
public static StringBuffer | stringSubstitution(String argStr, Map vars) Perform a series of substitutions. |
final public static String | sub(String line, String oldString, String newString) Replaces all instances of oldString with newString in line.
Taken from the Jive forum package.
Parameters: line - original string. Parameters: oldString - string in line to replace. Parameters: newString - replace oldString with this. |
public static List | trimStrings(List list) Trim all strings in a List. |