|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.perforce.api.Utils
Class that contains static utility methods.
HashDecay
Constructor Summary | |
Utils()
|
Method Summary | |
static void |
cleanUp()
Cleans up after the package has been used. |
static String |
commonPrefix(Enumeration en)
Returns common prefix for an Enumeration of strings. |
static String |
commonPrefix(Vector v)
Returns common prefix for a Vector of strings. |
static int |
getChangeFromPath(String path)
Returns the change number portion of a depot path, if there is a valid one found. |
static String |
HTMLEncode(String str)
Returns the string encoded for HTML use. |
static void |
initPackage()
Initializes the package, in order to avoid some arbitrary JVM problems that have been encountered. |
static boolean |
isMSJVM()
Check to see if the current Java Virtual Machine is made by Microsoft |
static boolean |
isWindows()
Check to see if the current operating system is a Windows OS |
static boolean |
wildPathMatch(String wildpath,
String path)
Returns true if the path matches the wildpath . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static void cleanUp()
public static String commonPrefix(Enumeration en)
public static String commonPrefix(Vector v)
public static final int getChangeFromPath(String path)
public static String HTMLEncode(String str)
> becomes > and < becomes <
public static void initPackage()
public static boolean isMSJVM()
public static boolean isWindows()
public static boolean wildPathMatch(String wildpath, String path)
path
matches the wildpath
.
Only perforce wildcards are considered in the wildpath
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |