Package cern.accsoft.steering.jmad.util
Class OsUtil
- java.lang.Object
-
- cern.accsoft.steering.jmad.util.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()
-
-
-
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
-
-