public class PlatformUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static short |
getPlatformType()
Return the OS type.
|
static boolean |
isMACOSXPlatform()
Return true if the platform is Mac OS X.
|
static boolean |
isUnixPlatform()
Return true if the platform is an UNIX-like OS.
|
static boolean |
isWindowsPlatform()
Return true if the platform is a Windows OS.
|
public static final short getPlatformType()
OS_MACOSXOS_WINDOWSOS_LINUXOS_UNIX for Unix systems (AIX, SunOS, hp-ux)OS_OTHER for unknown OS typespublic static boolean isUnixPlatform()
public static boolean isWindowsPlatform()
public static boolean isMACOSXPlatform()