Class OsInfo

java.lang.Object
com.iohao.net.common.kit.OsInfo

public final class OsInfo extends Object
Operating system detection utilities.
Since:
25.1
Author:
渔民小镇
date:
2025-08-27
  • Method Details

    • getOsName

      public static String getOsName()
      The operating system name, or null if it could not be determined.
    • isLinux

      public static boolean isLinux()
      true if the current OS is Linux.
    • isMac

      public static boolean isMac()
      true if the current OS is macOS.