Class OSUtils


  • public class OSUtils
    extends Object
    Utility fields for OS detection.
    Author:
    Sebastien Vincent, Lubomir Marinov
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean IS_32_BIT
      true if architecture is 32 bit.
      static boolean IS_64_BIT
      true if architecture is 64 bit.
      static boolean IS_ANDROID
      true if OS is Android
      static boolean IS_FREEBSD
      true if OS is FreeBSD.
      static boolean IS_LINUX
      true if OS is Linux.
      static boolean IS_LINUX32
      true if OS is Linux 32-bit.
      static boolean IS_LINUX64
      true if OS is Linux 64-bit.
      static boolean IS_MAC
      true if OS is MacOSX.
      static boolean IS_MAC32
      true if OS is MacOSX 32-bit.
      static boolean IS_MAC64
      true if OS is MacOSX 64-bit.
      static boolean IS_WINDOWS
      true if OS is Windows.
      static boolean IS_WINDOWS_10
      true if OS is Windows 10.
      static boolean IS_WINDOWS_7
      true if OS is Windows 7.
      static boolean IS_WINDOWS_8
      true if OS is Windows 8.
      static boolean IS_WINDOWS32
      true if OS is Windows 32-bit.
      static boolean IS_WINDOWS64
      true if OS is Windows 64-bit.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OSUtils()
      Allows the extending of the OSUtils class but disallows initializing non-extended OSUtils instances.
    • Field Detail

      • IS_32_BIT

        public static final boolean IS_32_BIT
        true if architecture is 32 bit.
      • IS_64_BIT

        public static final boolean IS_64_BIT
        true if architecture is 64 bit.
      • IS_ANDROID

        public static final boolean IS_ANDROID
        true if OS is Android
      • IS_LINUX

        public static final boolean IS_LINUX
        true if OS is Linux.
      • IS_LINUX32

        public static final boolean IS_LINUX32
        true if OS is Linux 32-bit.
      • IS_LINUX64

        public static final boolean IS_LINUX64
        true if OS is Linux 64-bit.
      • IS_MAC

        public static final boolean IS_MAC
        true if OS is MacOSX.
      • IS_MAC32

        public static final boolean IS_MAC32
        true if OS is MacOSX 32-bit.
      • IS_MAC64

        public static final boolean IS_MAC64
        true if OS is MacOSX 64-bit.
      • IS_WINDOWS

        public static final boolean IS_WINDOWS
        true if OS is Windows.
      • IS_WINDOWS32

        public static final boolean IS_WINDOWS32
        true if OS is Windows 32-bit.
      • IS_WINDOWS64

        public static final boolean IS_WINDOWS64
        true if OS is Windows 64-bit.
      • IS_WINDOWS_7

        public static final boolean IS_WINDOWS_7
        true if OS is Windows 7.
      • IS_WINDOWS_8

        public static final boolean IS_WINDOWS_8
        true if OS is Windows 8.
      • IS_WINDOWS_10

        public static final boolean IS_WINDOWS_10
        true if OS is Windows 10.
      • IS_FREEBSD

        public static final boolean IS_FREEBSD
        true if OS is FreeBSD.
    • Constructor Detail

      • OSUtils

        protected OSUtils()
        Allows the extending of the OSUtils class but disallows initializing non-extended OSUtils instances.