Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.edelbyte.util
Class System  view System download System.java

java.lang.Object
  extended byorg.edelbyte.util.System

public class System
extends java.lang.Object

The System class provides operating system related stuff. It cannot be instantiated.


Field Summary
static int OS_FAMILY_UNIX
          Constant standing for the Unix operating systems, like IBM's AIX, Linux, Sun Solaris and others.
static int OS_FAMILY_WINTEL
          Constant standing for all DOS succession operating systems, like the Microsoft Windows family and IBM's OS/2.
 
Constructor Summary
private System()
          Private declared Constructor, preventing the instantiation of the System class.
 
Method Summary
static int getOsFamily()
          Detects and returns the operating system family.

Background: The detection is done by interpreting the value of java.lang.System.getProperty("os.name");
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OS_FAMILY_WINTEL

public static final int OS_FAMILY_WINTEL
Constant standing for all DOS succession operating systems, like the Microsoft Windows family and IBM's OS/2. ************************************************************************

See Also:
Constant Field Values

OS_FAMILY_UNIX

public static final int OS_FAMILY_UNIX
Constant standing for the Unix operating systems, like IBM's AIX, Linux, Sun Solaris and others. ************************************************************************

See Also:
Constant Field Values
Constructor Detail

System

private System()
Private declared Constructor, preventing the instantiation of the System class. ************************************************************************

Method Detail

getOsFamily

public static int getOsFamily()
                       throws UnknownValueException
Detects and returns the operating system family.

Background: The detection is done by interpreting the value of java.lang.System.getProperty("os.name");