Method Summary |
|
public static boolean | areStringsEqual(String s1, String s2) Return whether the 2 passed strings are equal. |
public static String | changeClassNameToFileName(String name) Change the passed class name to its corresponding file name. |
public static String | changeFileNameToClassName(String name) Change the passed file name to its corresponding class name. |
public static String | cleanString(String str) Clean the passed string. |
public static Object | cloneObject(Object toClone, ClassLoader classLoader) Creates a clone of any serializable object. |
public static void | closeReader(Reader reader) Closes the specified Reader which can be null. |
public static String | formatSize(long longSize) |
public static String | formatSize(long longSize, int decimalPos) |
public static Throwable | getDeepestThrowable(Throwable t) |
public static String | getFileNameSuffix(String fileName) Return the suffix of the passed file name. |
public static String | getStackTrace(Throwable th) |
public static boolean | isStringEmpty(String str) Return true if the passed string is null or empty. |
public static void | printStackTrace(PrintStream ps) Print the current stack trace to ps. |
public static String | removeFileNameSuffix(String fileName) Remove the suffix from the passed file name. |
public static String | replaceI18NSpanLine(String line, StringManager s_stringMgr) Internationalizes a line with an embedded I18n key in it. |
public static String[] | splitString(String str, char delimiter) Split a string based on the given delimiter, but don't remove
empty elements.
Parameters: str - The string to be split. Parameters: delimiter - Split string based on this delimiter. Array of split strings. |
public static String[] | splitString(String str, char delimiter, boolean removeEmpty) Split a string based on the given delimiter, optionally removing
empty elements.
Parameters: str - The string to be split. Parameters: delimiter - Split string based on this delimiter. Parameters: removeEmpty - If true then remove empty elements. Array of split strings. |