类 SystemUtil

java.lang.Object
cn.warpin.core.util.SystemUtil

public class SystemUtil extends Object
  • 构造器详细资料

    • SystemUtil

      public SystemUtil()
  • 方法详细资料

    • isWindows

      public static boolean isWindows()
      判断操作系统是否是 Windows
      返回:
      true:操作系统是 Windows false:其它操作系统
    • isMacOs

      public static boolean isMacOs()
      判断操作系统是否是 MacOS
      返回:
      true:操作系统是 MacOS false:其它操作系统
    • isLinux

      public static boolean isLinux()
      判断操作系统是否是 Linux
      返回:
      true:操作系统是 Linux false:其它操作系统
    • getOsName

      public static String getOsName()
      获取操作系统名称
      返回:
      os.name 属性值
    • getSymbol

      public static String getSymbol()
      获取操作系统路径分隔符
      返回:
    • main

      public static void main(String[] args)