Package com.explodingpixels.util
Class PlatformUtils
java.lang.Object
com.explodingpixels.util.PlatformUtils
Utility methods for dealing with the platform (e.g. Mac or Windows).
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get's the version of Java currently running.static String
Gets the operating system version that the JVM is running on.static boolean
True if this JVM is running 64 bit Java on a Mac.static boolean
True if this JVM is running Java 6 on a Mac.static boolean
True if this JVM is running on Mac OS X 10.5, Leopard.static boolean
isMac()
True if this JVM is running on a Mac.
-
Method Details
-
getJavaVersion
Get's the version of Java currently running.- Returns:
- the version of Java that is running.
-
getOsVersion
Gets the operating system version that the JVM is running on.- Returns:
- the operating system version that the JVM is running on.
-
isMac
public static boolean isMac()True if this JVM is running on a Mac.- Returns:
- true if this JVM is running on a Mac.
-
isJava6OnMac
public static boolean isJava6OnMac()True if this JVM is running Java 6 on a Mac.- Returns:
- true if this JVM is running Java 6 on a Mac.
-
is64BitJavaOnMac
public static boolean is64BitJavaOnMac()True if this JVM is running 64 bit Java on a Mac.- Returns:
- true if this JVM is running 64 bit Java on a Mac.
-
isLeopard
public static boolean isLeopard()True if this JVM is running on Mac OS X 10.5, Leopard.- Returns:
- true if this JVM is running on Mac OS X 10.5, Leopard.
-