类 Platforms

java.lang.Object
net.apexes.commons.lang.Platforms

public class Platforms extends Object
作者:
HeDYn
  • 构造器详细资料

    • Platforms

      public Platforms()
  • 方法详细资料

    • getPlatform

      public static String getPlatform()
      Returns the platform name. This could be for example "linux-x86" or "windows-x86_64".
      返回:
      The architecture name. Never null.
    • getOS

      public static String getOS()
      Returns the operating system name. This could be "linux", "windows" or "macos" or (for any other non-supported platform) the value of the "os.name" property converted to lower case and with removed space characters.
      返回:
      The operating system name.
    • getArch

      public static String getArch()
      Returns the CPU architecture. This will be "x86" or "x86_64" (Platform names i386 und amd64 are converted accordingly) or (when platform is unsupported) the value of os.arch converted to lower-case and with removed space characters.
      返回:
      The CPU architecture