jsystem.utils
Class StringUtils

java.lang.Object
  extended byjsystem.utils.StringUtils

public class StringUtils
extends Object


Constructor Summary
StringUtils()
           
 
Method Summary
static int countString(String s, String toCount)
           
static String[] getAsStringArray(ArrayList list)
           
static String getClassName(String className)
           
static String getClassName(String file, String root)
           
static String getPackageName(String className)
           
static String getStackTrace(Throwable t)
           
static boolean isFound(Object toSearch, Object[] searchIn)
           
static String replace(String lookIn, String lookFor, String replaceWith)
          The source was taken from the internet.
static String toHtmlString(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

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