|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.OperatingSystemType
public class OperatingSystemType
Utilities to help determine operating system type
| Field Summary | |
|---|---|
static String |
HP_UX
HP-UX identifier |
static String |
LINUX
Linux identifier |
static String |
MACINTOSH
Mac identifier |
static String |
SOLARIS
Solaris identifier |
static String |
WINDOWS
Windows identifier |
static String |
WINDOWS_2K
Windows 2000 identifier |
static String |
WINDOWS_XP
Windows XP identifier |
| Constructor Summary | |
|---|---|
OperatingSystemType()
|
|
| Method Summary | |
|---|---|
static String |
getPid()
Gets a string representing the pid of this program - Java VM |
static boolean |
isHP()
Check if running on HP-UX |
static boolean |
isLinux()
Check if running on Linux |
static boolean |
isMac()
Check if running on Mac |
static boolean |
isSolaris()
Check if running on Solaris |
static boolean |
isWindows()
Check if running on Windows |
static boolean |
isWindows2K()
Check if running on Windows 2000 |
static boolean |
isWindowsXP()
Check if running on Windows XP |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LINUX
public static final String SOLARIS
public static final String MACINTOSH
public static final String WINDOWS
public static final String WINDOWS_2K
public static final String WINDOWS_XP
public static final String HP_UX
| Constructor Detail |
|---|
public OperatingSystemType()
| Method Detail |
|---|
public static boolean isLinux()
true, otherwise return
falsepublic static boolean isSolaris()
true, otherwise return
falsepublic static boolean isMac()
true, otherwise return
falsepublic static boolean isHP()
true, otherwise return
falsepublic static boolean isWindows()
true, otherwise return
falsepublic static boolean isWindows2K()
true, otherwise
return falsepublic static boolean isWindowsXP()
true, otherwise
return false
public static String getPid()
throws IOException,
InterruptedException
IOException - If the shell cannot be created
InterruptedException - If the process wait is interrupted
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||