Class OsUtil


  • public final class OsUtil
    extends java.lang.Object
    provides some methods to determine the operating-system
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getOsName()  
      static boolean isLinux()  
      static boolean isOsX()  
      static boolean isWindows()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isWindows

        public static boolean isWindows()
        Returns:
        true, if VM is running on a windows - platform, false otherwise
      • isOsX

        public static boolean isOsX()
        Returns:
        true, if the VM is running on a mac-osx platform, false otherwise.
      • isLinux

        public static boolean isLinux()
        Returns:
        true if VM is running on a Linux platform, false otherwise
      • getOsName

        public static java.lang.String getOsName()
        Returns:
        the name of the OS