Package com.explodingpixels.util
Class PlatformUtils
- java.lang.Object
-
- com.explodingpixels.util.PlatformUtils
-
public class PlatformUtils extends java.lang.ObjectUtility methods for dealing with the platform (e.g. Mac or Windows).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetJavaVersion()Get's the version of Java currently running.static java.lang.StringgetOsVersion()Gets the operating system version that the JVM is running on.static booleanis64BitJavaOnMac()True if this JVM is running 64 bit Java on a Mac.static booleanisJava6OnMac()True if this JVM is running Java 6 on a Mac.static booleanisLeopard()True if this JVM is running on Mac OS X 10.5, Leopard.static booleanisMac()True if this JVM is running on a Mac.
-
-
-
Method Detail
-
getJavaVersion
public static java.lang.String getJavaVersion()
Get's the version of Java currently running.- Returns:
- the version of Java that is running.
-
getOsVersion
public static java.lang.String 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.
-
-