fc.util
Class Platform

java.lang.Object
  extended by fc.util.Platform

public class Platform
extends 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.


Field Summary
static Platform FREEBSD
           
static Platform LINUX
           
static Platform OPENBSD
           
static Platform OSX
           
static Platform OTHER
          other OS's including HPUX, IRIX, AIX, and many others
static Platform SOLARIS
           
static Platform WINDOWS
           
 
Method Summary
static Platform getPlatform()
           
static boolean isAIX()
           
static boolean isFreeBSD()
           
static boolean isLinux()
           
static boolean isOpenBSD()
           
static boolean isOSX()
           
static boolean isOther()
           
static boolean isSolaris()
           
static boolean isWindows()
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Method Detail

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 String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)