|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.firstpartners.rp.common.util.Util
public class Util
Utility class
| Field Summary | |
|---|---|
(package private) static java.lang.String |
pathSep
Path separator |
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
addFolder(java.lang.String startFolder,
java.lang.String addedFolder)
Get the folder using a base location and absolute path |
static java.io.File[] |
getFileList(java.lang.String root)
Get the file list of the specified path |
static long |
getHash(java.lang.String value)
Get the hashing value for the specified value |
static java.lang.String |
getSearchTerm(java.lang.String value)
Get the search term based upon the searcg query |
static boolean |
isEmpty(java.lang.String value)
Validate if one string is empty |
static boolean |
isTimeExpired(long starttime,
int maxTimeWaiting)
Validate if the time is expired reported to a starttime |
private static java.lang.String |
replacePathSep(java.lang.String value)
Replace the characters from string iwth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final java.lang.String pathSep
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static boolean isEmpty(java.lang.String value)
value - String to validate
public static java.lang.String addFolder(java.lang.String startFolder,
java.lang.String addedFolder)
startFolder - Base locationaddedFolder - Absolute path
private static java.lang.String replacePathSep(java.lang.String value)
value - Value to be process
public static boolean isTimeExpired(long starttime,
int maxTimeWaiting)
starttime - StarttimemaxTimeWaiting - Wait time in msec
public static java.io.File[] getFileList(java.lang.String root)
root - Root folder
public static java.lang.String getSearchTerm(java.lang.String value)
value - Search query
public static long getHash(java.lang.String value)
value - The value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||