diff options
Diffstat (limited to 'src/java/com/jogamp/common/os')
-rw-r--r-- | src/java/com/jogamp/common/os/Platform.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/os/Platform.java b/src/java/com/jogamp/common/os/Platform.java index 72a0b3d..e58e72c 100644 --- a/src/java/com/jogamp/common/os/Platform.java +++ b/src/java/com/jogamp/common/os/Platform.java @@ -257,13 +257,26 @@ public class Platform extends PlatformPropsImpl { public static void initSingleton() { } /** - * Returns true only if this program is running on the Java Standard Edition. + * Returns true only if having {@link java.nio.LongBuffer} and {@link java.nio.DoubleBuffer} available. */ public static boolean isJavaSE() { return JAVA_SE; } /** + * Returns true only if being compatible w/ language level 6, e.g. JRE 1.6. + * <p> + * Implies {@link #isJavaSE()}. + * </p> + * <p> + * <i>Note</i>: We claim Android is compatible. + * </p> + */ + public static boolean isJava6() { + return JAVA_6; + } + + /** * Returns true if this machine is little endian, otherwise false. */ public static boolean isLittleEndian() { |