public class SystemPropertyUtilities
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
getLinuxDescription() |
static double |
getSystemSizeRate()
获取系统缩放比例
|
static boolean |
isLinux()
判断是否是linux系统,暂时认为不是windows就是linux 避免增加平台时修改“!
|
static boolean |
isSupportPlatform(java.lang.String platform)
获取当前系统是否为支持的操作平台
|
static boolean |
isWindows()
判断当前系统是否是windows系统,应用暂时只支持windows和linux系统
|
public static boolean isWindows()
public static java.lang.String getLinuxDescription()
public static boolean isLinux()
public static double getSystemSizeRate()
public static boolean isSupportPlatform(java.lang.String platform)
platform
- "all" 为所有系统都返回true "windows"只有在windows操作系统上返回true "linux"只有在linux操作系统上返回true