iaik.tc.utils.misc
Class OsDetection

java.lang.Object
  extended by iaik.tc.utils.misc.OsDetection

public class OsDetection
extends java.lang.Object


Field Summary
static java.lang.String OS_LINUX
          OS id string for LINUX.
static java.lang.String OS_WINDOWS_EIGHT
           
static java.lang.String OS_WINDOWS_EIGHT_ONE
           
static java.lang.String OS_WINDOWS_MMVIII
           
static java.lang.String OS_WINDOWS_MMVIIIR2
           
static java.lang.String OS_WINDOWS_SEVEN
           
static java.lang.String OS_WINDOWS_UNKNOWN
           
static java.lang.String OS_WINDOWS_VISTA
          OS id string for Windows Vista and higher.
 
Constructor Summary
OsDetection()
           
 
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
 

Field Detail

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
Constructor Detail

OsDetection

public OsDetection()
Method Detail

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.