Modifier and Type | Field and Description |
---|---|
private static String |
CLASSNAME
A holder This classes name (used when logging).
|
static String |
CLASSPATH
The VM classpath (used in some methods)..
|
static String |
SYSTEM_FILE_SEPERATOR
A holder for this clients System File Separator.
|
static String |
SYSTEM_LINE_SEPERATOR
A holder for this clients System line termination separator.
|
static String |
USERDIR
The users pwd ditrectory.
|
static String |
USERHOME
The users home ditrectory.
|
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
getCurrentClassName()
Returns the calling classes name.
|
static String |
getCurrentMethodName()
Returns the calling methods name.
|
static boolean |
sleep(long waitTime)
A method to simply abstract the Try/Catch required to put the current
thread to sleep for the specified time in ms.
|
static String |
tokenReplace(String sentence,
String token,
String replacement)
A simple String token replacement routine.
|
public static final String SYSTEM_FILE_SEPERATOR
public static final String SYSTEM_LINE_SEPERATOR
public Util()
public static String getCurrentClassName()
public static String getCurrentMethodName()
public static String tokenReplace(String sentence, String token, String replacement)
sentence
- The String to perform the token replacement ontoken
- the token String to seartch for and replacereplacement
- the tokens replacement valuepublic static boolean sleep(long waitTime)
waitTime
- the sleep time in milli seconds (ms).WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses