|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.thdl.util.OperatingSystemUtils
This class contains our operating-system-specific code. This class is not instantiable.
| Field Summary | |
static int |
MAC
Mac (OS X or otherwise) |
private static String |
OSName
cached result of getOSName() |
static int |
OTHER
Not WIN32, not MAC -- maybe a *nix box. |
static int |
UNKNOWN
This means that, because of security restrictions or the like, we cannot determine the OS. |
static int |
WIN32
Windows 9x, Me, 200*, or XP |
| Constructor Summary | |
private |
OperatingSystemUtils()
Do not instantiate this class. |
| Method Summary | |
static String |
getOSName()
Returns the lowercase name of the operating system, or "unknown" if the operating system's identity cannot be determined. |
static int |
getOSType()
Returns either UNKNOWN, WIN32, MAC,
or OTHER. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UNKNOWN
public static final int OTHER
public static final int WIN32
public static final int MAC
private static String OSName
getOSName()
| Constructor Detail |
private OperatingSystemUtils()
| Method Detail |
public static String getOSName()
public static int getOSType()
UNKNOWN, WIN32, MAC,
or OTHER.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||