iaik.tc.utils.misc
Class OsDetection
java.lang.Object
iaik.tc.utils.misc.OsDetection
public class OsDetection
- extends java.lang.Object
Method Summary |
static boolean |
operatingSystemIs(java.lang.String osId)
This method returns true if the id string of the current operating system matches the given
one. |
static boolean |
operatingSystemIsWindows()
This method returns true if the id string of the current operating system
matches one of the known Windows id strings. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OS_LINUX
public static final java.lang.String OS_LINUX
- OS id string for LINUX.
- See Also:
- Constant Field Values
OS_WINDOWS_VISTA
public static final java.lang.String OS_WINDOWS_VISTA
- OS id string for Windows Vista and higher.
- See Also:
- Constant Field Values
OS_WINDOWS_SEVEN
public static final java.lang.String OS_WINDOWS_SEVEN
- See Also:
- Constant Field Values
OS_WINDOWS_EIGHT
public static final java.lang.String OS_WINDOWS_EIGHT
- See Also:
- Constant Field Values
OS_WINDOWS_EIGHT_ONE
public static final java.lang.String OS_WINDOWS_EIGHT_ONE
- See Also:
- Constant Field Values
OS_WINDOWS_MMVIII
public static final java.lang.String OS_WINDOWS_MMVIII
- See Also:
- Constant Field Values
OS_WINDOWS_MMVIIIR2
public static final java.lang.String OS_WINDOWS_MMVIIIR2
- See Also:
- Constant Field Values
OS_WINDOWS_UNKNOWN
public static final java.lang.String OS_WINDOWS_UNKNOWN
- See Also:
- Constant Field Values
OsDetection
public OsDetection()
operatingSystemIs
public static boolean operatingSystemIs(java.lang.String osId)
- This method returns true if the id string of the current operating system matches the given
one.
operatingSystemIsWindows
public static boolean operatingSystemIsWindows()
- This method returns true if the id string of the current operating system
matches one of the known Windows id strings.