com.perforce.api
Class Utils
java.lang.Object
|
+--com.perforce.api.Utils
- public final class Utils
- extends Object
Class that contains static utility methods.
- Version:
- $Date: 2001/11/02 $ $Revision: #1 $
- Author:
- David Markley
- See Also:
HashDecay
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
commonPrefix
public static String commonPrefix(Enumeration en)
- Returns common prefix for an Enumeration of strings.
commonPrefix
public static String commonPrefix(Vector v)
- Returns common prefix for a Vector of strings.
getChangeFromPath
public static final int getChangeFromPath(String path)
- Returns the change number portion of a depot path, if there is
a valid one found. Otherwise, it returns -1.
HTMLEncode
public static String HTMLEncode(String str)
initPackage
public static void initPackage()
- Initializes the package, in order to avoid some arbitrary JVM problems
that have been encountered. This is a hack and should not have to be done
if certain overbearing empires starting with the letter M built a fully
compliant JVM.
isMSJVM
public static boolean isMSJVM()
- Check to see if the current Java Virtual Machine is made by Microsoft
- Returns:
- boolean true if the java.vendor property comtains the word 'Microsoft'
isWindows
public static boolean isWindows()
- Check to see if the current operating system is a Windows OS
- Returns:
- boolean true if the os.name property comtains the word 'Windows'
main
public static void main(String[] argv)
wildPathMatch
public static boolean wildPathMatch(String wildpath,
String path)
Copyright © 2001, Perforce Software, All rights reserved.