org.thdl.util
Class OperatingSystemUtils

java.lang.Object
  |
  +--org.thdl.util.OperatingSystemUtils

public class OperatingSystemUtils
extends Object

This class contains our operating-system-specific code. This class is not instantiable.


Field Summary
static int MAC
          Mac (OS X or otherwise)
static int OTHER
          Not WIN32, not MAC -- maybe a *nix box.
static int UNKNOWN
          This means that, because of security restrictions or the like, we cannot determine the OS.
static int WIN32
          Windows 9x, Me, 200*, or XP
 
Method Summary
static String getOSName()
          Returns the lowercase name of the operating system, or "unknown" if the operating system's identity cannot be determined.
static int getOSType()
          Returns either UNKNOWN, WIN32, MAC, or OTHER.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
This means that, because of security restrictions or the like, we cannot determine the OS.

See Also:
Constant Field Values

OTHER

public static final int OTHER
Not WIN32, not MAC -- maybe a *nix box.

See Also:
Constant Field Values

WIN32

public static final int WIN32
Windows 9x, Me, 200*, or XP

See Also:
Constant Field Values

MAC

public static final int MAC
Mac (OS X or otherwise)

See Also:
Constant Field Values
Method Detail

getOSName

public static String getOSName()
Returns the lowercase name of the operating system, or "unknown" if the operating system's identity cannot be determined.


getOSType

public static int getOSType()
Returns either UNKNOWN, WIN32, MAC, or OTHER.



These API docs were created 02/02/2003 08:19 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo