Class OS


  • public class OS
    extends Object
    This class is made to get the OS platform name, e.g.
    Red Hat Enterprise Linux Server release 5.6 (Tikanga)

    It currently supports : - Linux - Windows - Mac OS - Solaris
    TODO : P-UX / ZOS
    Author:
    Aurelien Broszniowski http://www.jsoft.biz
    • Field Detail

      • INSTANCE

        public static final OS INSTANCE
    • Method Detail

      • getName

        public String getName()
      • getArch

        public String getArch()
      • getVersion

        public String getVersion()
      • getPlatformName

        public String getPlatformName()
      • getShellExtension

        public String getShellExtension()
      • isWindows

        public boolean isWindows()
      • isMac

        public boolean isMac()
      • isUnix

        public boolean isUnix()
      • isPosix

        public Boolean isPosix()