|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.security.japi.pki.OSUtil
The OSUtil
class provides methods and utilities to help in dealing with the differences
between operating systems.
Field Summary | |
static int |
AIX
Specifies the AIX operating system. |
static int |
HPUX
Specifies the HP-UX operating system. |
static int |
LINUX
Specifies the Linux operating system. |
static int |
NETWARE
Specifies the NetWare operating system. |
static int |
SOLARIS
Specifies the Solaris operating system. |
static int |
WINDOWS_XX
Specifies the Windows operating system. |
Constructor Summary | |
OSUtil()
|
Method Summary | |
static void |
delay(long milliSeconds)
Delays for the specified number of milliseconds. |
static java.lang.String |
formatMB(long num)
Converts a long byte count into a string MB count of xxx.xx format. |
static java.lang.String |
getFileSeparator()
Returns the host operating system's file separator character (e.g., / or \). |
static java.lang.String |
getJavaClassPath()
Returns the Java classpath. |
static java.lang.String |
getJavaClassVersion()
Returns the version of the Java class library. |
static java.lang.String |
getJavaHomeDir()
Returns the home directory for the Java Virtual Machine (JVM). |
static java.lang.String |
getJavaVendor()
Returns the vendor name of the Java Virtual Machine (JVM). |
static java.lang.String |
getJavaVendorURL()
Returns the URL address of the Java Virtual Machine (JVM) vendor. |
static java.lang.String |
getJavaVersion()
Returns the version of the currently running Java Virtual Machine (JVM). |
static java.lang.String |
getLineSeparator()
Returns the host operating system's line separator character (e.g., \n or \r\n). |
static java.lang.String |
getOSHardwareType()
Returns the name of the host hardware architecture type. |
static java.lang.String |
getOSName()
Returns the name of the host operating system. |
static int |
getOSType()
Returns the type (as integer) of the host operating system. |
static java.lang.String |
getOSVersion()
Returns the version of the host operating system |
static java.lang.String |
getPathSeparator()
Returns the host operating system's path separator character (e.g., : or ;). |
static java.lang.String |
getSystemAttribute(java.lang.String attributeName)
Returns the systems attributes***. |
static java.lang.String |
getUserDirctory()
Returns the user's current working directory. |
static java.lang.String |
getUserHomeDir()
Returns the home directory of the current system user. |
static java.lang.String |
getUserName()
Returns the name of the current system user. |
static int |
initOSType()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NETWARE
Specifies the NetWare operating system.
getOSType
,
Constant Field Valuespublic static final int WINDOWS_XX
Specifies the Windows operating system.
getOSType()
,
Constant Field Valuespublic static final int SOLARIS
Specifies the Solaris operating system.
getOSType
,
Constant Field Valuespublic static final int LINUX
Specifies the Linux operating system.
getOSType
,
Constant Field Valuespublic static final int AIX
Specifies the AIX operating system.
getOSType
,
Constant Field Valuespublic static final int HPUX
Specifies the HP-UX operating system.
getOSType
,
Constant Field ValuesConstructor Detail |
public OSUtil()
Method Detail |
public static int getOSType()
public static int initOSType()
public static java.lang.String getOSName()
public static java.lang.String getOSVersion()
public static java.lang.String getOSHardwareType()
public static java.lang.String getJavaVersion()
public static java.lang.String getJavaVendor()
public static java.lang.String getJavaVendorURL()
public static java.lang.String getJavaHomeDir()
public static java.lang.String getJavaClassVersion()
public static java.lang.String getJavaClassPath()
public static java.lang.String getFileSeparator()
public static java.lang.String getPathSeparator()
public static java.lang.String getLineSeparator()
public static java.lang.String getUserName()
public static java.lang.String getUserHomeDir()
public static java.lang.String getUserDirctory()
public static java.lang.String getSystemAttribute(java.lang.String attributeName)
attributeName
- Define***
public static void delay(long milliSeconds)
milliSeconds
- to delay.public static java.lang.String formatMB(long num)
num
- - the long byte count to convert.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |