Package com.explodingpixels.util
Class PlatformUtils
- java.lang.Object
-
- com.explodingpixels.util.PlatformUtils
-
public class PlatformUtils extends java.lang.Object
Utility 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.String
getJavaVersion()
Get's the version of Java currently running.static java.lang.String
getOsVersion()
Gets the operating system version that the JVM is running on.static boolean
is64BitJavaOnMac()
True if this JVM is running 64 bit Java on a Mac.static boolean
isJava6OnMac()
True if this JVM is running Java 6 on a Mac.static boolean
isLeopard()
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 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.
-
-