static boolean isLinux() { return getOsName().startsWith("Linux"); }
static boolean isLinux() { return getOsName().startsWith("Linux"); }
static boolean isWindows() { return getOsName().startsWith("Windows"); }
static boolean isMac() { return getOsName().startsWith("Mac"); }
static boolean isNativeClient() { return getOsName().startsWith("nacl"); }
static boolean isMac() { return getOsName().startsWith("Mac"); }
static boolean isNativeClient() { return getOsName().startsWith("nacl"); }
static boolean isAndroid() { return getOsName().contains("Android"); }
static boolean isAndroid() { return getOsName().contains("Android"); }
static boolean isWindows() { return getOsName().startsWith("Windows"); }
static String getOSFileExtension() { if (isWindows()) { return "dll"; } else if (isMac()) { return "dylib"; } else if (isLinux()) { return "so"; } else if (isNativeClient()) { return "so"; } throw new UnsatisfiedLinkError("Unsupported platform: " + getOsName()); }
static String getOSFileExtension() { if (isWindows()) { return "dll"; } else if (isMac()) { return "dylib"; } else if (isLinux()) { return "so"; } else if (isNativeClient()) { return "so"; } throw new UnsatisfiedLinkError("Unsupported platform: " + getOsName()); }
static String getOS() { if (isWindows()) { return "win32"; } else if (isMac()) { return "macosx"; } else if (isLinux() && !isAndroid()) { return "linux"; } else if (isAndroid()) { return "android"; } throw new UnsatisfiedLinkError("Unsupported platform: " + getOsName()); }
static String getOS() { if (isWindows()) { return "win32"; } else if (isMac()) { return "macosx"; } else if (isLinux() && !isAndroid()) { return "linux"; } else if (isAndroid()) { return "android"; } throw new UnsatisfiedLinkError("Unsupported platform: " + getOsName()); }