be.cardon.utils
Class OperatingSystem

java.lang.Object
  extended by be.cardon.utils.OperatingSystem

public class OperatingSystem
extends java.lang.Object

Provides OS properties.


Field Summary
static java.lang.String FILE_SEPARATOR_PROPERTY
           
static java.lang.String OS_NAME_PROPERTY
           
static java.lang.String USER_HOME_PROPERTY
           
 
Constructor Summary
OperatingSystem()
           
 
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
 

Field Detail

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

OperatingSystem

public OperatingSystem()
Method Detail

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.