|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.denova.runtime.OS
public class OS
| Field Summary | |
|---|---|
static java.lang.String |
X32Architecture
|
static java.lang.String |
X64Architecture
|
| Constructor Summary | |
|---|---|
OS()
|
|
| Method Summary | |
|---|---|
static java.lang.String[] |
addArg(java.lang.String[] args,
java.lang.String newArg)
Adds an argument to an array of arguments. |
static java.lang.String[] |
getEnvironment()
Deprecated. |
static java.lang.String |
getOsName()
|
static java.lang.String |
getSystemPath()
Get the system's path from the environment on Unix or Windows OSes. |
static java.lang.String |
getVersion()
|
static boolean |
installService(java.lang.String serviceName,
java.lang.String executable)
Install a service. |
static boolean |
isAix()
|
static boolean |
isHpUnix()
|
static boolean |
isLinux()
|
static boolean |
isMac()
|
static boolean |
isMacOsX()
|
static boolean |
isMpeUnix()
|
static boolean |
isNetware()
|
static boolean |
isOs2()
|
static boolean |
isSecureWindows()
Determines if current computer is running one of the more modern versions of Windows that requires more security. |
static boolean |
isSolaris()
|
static boolean |
isUnix()
|
static boolean |
isWindows()
|
static boolean |
isWindows2000()
|
static boolean |
isWindows7()
|
static boolean |
isWindows8()
|
static boolean |
isWindows95()
|
static boolean |
isWindows98()
|
static boolean |
isWindowsNT()
|
static boolean |
isWindowsServer2003()
|
static boolean |
isWindowsServer2008()
|
static boolean |
isWindowsVista()
|
static boolean |
isWindowsXP()
|
static boolean |
ln(java.lang.String existingFilename,
java.lang.String linkedFilename)
Symbolically link a file. |
static boolean |
removeService(java.lang.String serviceName,
java.lang.String executable)
Remove a service. |
static void |
sleep(long millseconds)
Sleep and trap for any exceptions. |
static boolean |
supportServices()
|
static void |
yield()
Yield. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String X32Architecture
public static final java.lang.String X64Architecture
| Constructor Detail |
|---|
public OS()
| Method Detail |
|---|
public static boolean isWindows()
public static boolean isSecureWindows()
public static boolean isWindowsVista()
public static boolean isWindows7()
public static boolean isWindows8()
public static boolean isWindows2000()
public static boolean isWindowsNT()
public static boolean isWindowsXP()
public static boolean isWindowsServer2003()
public static boolean isWindowsServer2008()
public static boolean isWindows98()
public static boolean isWindows95()
public static boolean isUnix()
public static boolean isLinux()
public static boolean isAix()
public static boolean isHpUnix()
public static boolean isSolaris()
public static boolean isMacOsX()
public static boolean isMac()
public static boolean isOs2()
public static boolean isNetware()
public static boolean isMpeUnix()
public static java.lang.String getOsName()
public static java.lang.String getVersion()
public static void sleep(long millseconds)
millseconds - to sleeppublic static void yield()
public static java.lang.String getSystemPath()
public static boolean ln(java.lang.String existingFilename,
java.lang.String linkedFilename)
existingFilename - file to create a link tolinkedFilename - symbolically linked filepublic static java.lang.String[] getEnvironment()
public static java.lang.String[] addArg(java.lang.String[] args,
java.lang.String newArg)
args - The array of argumentsnewArg - The new argument
public static boolean installService(java.lang.String serviceName,
java.lang.String executable)
serviceName - is the displayable name.executable - is the pathname to the executable; use double quotes for filenames with spaces.
public static boolean removeService(java.lang.String serviceName,
java.lang.String executable)
executable - is the pathname to the executable; use double quotes for filenames with spaces
public static boolean supportServices()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||