be.cardon.utils
Class OperatingSystem
java.lang.Object
be.cardon.utils.OperatingSystem
public class OperatingSystem
- extends java.lang.Object
Provides OS properties.
Method Summary |
static java.lang.String |
getSeparator()
|
static boolean |
isFileCaseSensitive()
|
static boolean |
isWindows()
Returns true if the OS is any version of Microsoft Windows. |
static boolean |
open(java.io.File file)
open the file with the operating system. |
static void |
printSystemProperties()
Prints all the system properties to the standard output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OS_NAME_PROPERTY
public static final java.lang.String OS_NAME_PROPERTY
- See Also:
- Constant Field Values
USER_HOME_PROPERTY
public static final java.lang.String USER_HOME_PROPERTY
- See Also:
- Constant Field Values
FILE_SEPARATOR_PROPERTY
public static final java.lang.String FILE_SEPARATOR_PROPERTY
- See Also:
- Constant Field Values
OperatingSystem
public OperatingSystem()
isWindows
public static boolean isWindows()
- Returns true if the OS is any version of Microsoft Windows.
printSystemProperties
public static void printSystemProperties()
- Prints all the system properties to the standard output.
getSeparator
public static java.lang.String getSeparator()
isFileCaseSensitive
public static boolean isFileCaseSensitive()
open
public static boolean open(java.io.File file)
- open the file with the operating system.