public final class SystemUtils extends Object
| 构造器和说明 |
|---|
SystemUtils()
NumberUtils instances should NOT be constructed in standard programming. |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getJavaVersion() |
static String |
getSystemProperty(String key)
Returns the value of the Java system property with the specified
key, while falling back to null if the property access fails. |
static String |
getSystemProperty(String key,
String defaultValue)
Returns the value of the Java system property with the specified
key,
while falling back to the specified default value if the property access fails. |
static boolean |
isAndroid() |
static boolean |
isIkvmDotNet()
|
static boolean |
isJ9Jvm()
|
static boolean |
isOsx()
Return
true if the JVM is running on OSX / MacOS |
static boolean |
isSupperUser() |
static boolean |
isWindows()
Return
true if the JVM is running on Windows |
public SystemUtils()
NumberUtils instances should NOT be constructed in standard programming.
Instead, the class should be used as NumberUtils.stringToInt("6");.
This constructor is public to permit tools that require a JavaBean instance to operate.
public static String getSystemProperty(String key)
key, while falling back to null if the property access fails.nullpublic static String getSystemProperty(String key, String defaultValue)
key,
while falling back to the specified default value if the property access fails.def if there's no such property or if an access to the specified property is not allowed.public static boolean isWindows()
true if the JVM is running on Windowspublic static boolean isAndroid()
public static boolean isOsx()
true if the JVM is running on OSX / MacOSpublic static boolean isJ9Jvm()
public static boolean isIkvmDotNet()
public static boolean isSupperUser()
public static int getJavaVersion()
Copyright © 2022. All rights reserved.