jsystem.utils
Class StringUtils
java.lang.Object
jsystem.utils.StringUtils
- public class StringUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtils
public StringUtils()
replace
public static String replace(String lookIn,
String lookFor,
String replaceWith)
- The source was taken from the internet.
Replace a text in other text in a given input text.
- Parameters:
lookIn
- The text to look in.lookFor
- The text to look for.replaceWith
- The text to replace with.
- Returns:
- The text after the replace operation.
toHtmlString
public static String toHtmlString(String s)
getPackageName
public static String getPackageName(String className)
getClassName
public static String getClassName(String className)
isFound
public static boolean isFound(Object toSearch,
Object[] searchIn)
getAsStringArray
public static String[] getAsStringArray(ArrayList list)
getStackTrace
public static String getStackTrace(Throwable t)
countString
public static int countString(String s,
String toCount)
getClassName
public static String getClassName(String file,
String root)
throws FileNotFoundException
- Throws:
FileNotFoundException