public class SystemEnvironmentHelper
extends java.lang.Object
| Constructor and Description |
|---|
SystemEnvironmentHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getOperatingSystem()
Returns the operating system by calling
System.getProperty("os.name"). |
static java.lang.String |
getOperatingSystemsArchitecture()
Return the architecture of the operating systems by calling
System.getProperty("os.arch"). |
static java.lang.String |
getOperatingSystemsVersion()
Return the version of the operating systems by calling
System.getProperty("os.version"). |
static boolean |
isHeadlessOperation()
Checks if the current system environment is executed headless (without any GUI).
|
static boolean |
isLinuxOperatingSystem()
Checks if the current operating system is Linux.
|
static boolean |
isMacOperatingSystem()
Checks if the current operating system is Mac OS X.
|
static boolean |
isWindowsOperatingSystem()
Checks if the current operating system is windows.
|
public static java.lang.String getOperatingSystem()
System.getProperty("os.name").public static boolean isWindowsOperatingSystem()
public static boolean isLinuxOperatingSystem()
public static boolean isMacOperatingSystem()
public static java.lang.String getOperatingSystemsVersion()
System.getProperty("os.version").public static java.lang.String getOperatingSystemsArchitecture()
System.getProperty("os.arch").public static boolean isHeadlessOperation()