fc.util
Class Platform
java.lang.Object
fc.util.Platform
public class Platform
- extends java.lang.Object
Identifies the current platform/OS that the JVM is running
under. There is only 1 instance of this class corresponding
to each type of platform. Therefore reference equality
can be used to compare whether the current platform is
the same as some particular platform type.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LINUX
public static final Platform LINUX
WINDOWS
public static final Platform WINDOWS
SOLARIS
public static final Platform SOLARIS
OSX
public static final Platform OSX
FREEBSD
public static final Platform FREEBSD
OPENBSD
public static final Platform OPENBSD
OTHER
public static final Platform OTHER
- other OS's including HPUX, IRIX, AIX, and many others
getPlatform
public static Platform getPlatform()
isWindows
public static boolean isWindows()
isOSX
public static boolean isOSX()
isLinux
public static boolean isLinux()
isSolaris
public static boolean isSolaris()
isFreeBSD
public static boolean isFreeBSD()
isOpenBSD
public static boolean isOpenBSD()
isOther
public static boolean isOther()
isAIX
public static boolean isAIX()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)