com.izforge.izpack.util
Class OsVersion

java.lang.Object
  extended bycom.izforge.izpack.util.OsVersion

public final class OsVersion
extends java.lang.Object

Date: Nov 9, 2004 Time: 8:53:22 PM

Author:
hani

Field Summary
static boolean IS_AIX
          True if this is AIX.
static boolean IS_FREEBSD
          True if this is FreeBSD.
static boolean IS_HPUX
          True if this is HP-UX.
static boolean IS_LINUX
          True if this is Linux.
static boolean IS_OS2
          True if this is OS/2.
static boolean IS_OSX
          True if this is the Mac OS X.
static boolean IS_SUNOS
          True if this is SunOS.
static boolean IS_UNIX
          True if this is some variant of Unix (OSX, Linux, Solaris, FreeBSD, etc).
static boolean IS_WINDOWS
          True if this is Windows.
static java.lang.String OS_NAME
           
 
Constructor Summary
OsVersion()
           
 
Method Summary
private static boolean startsWith(java.lang.String str, java.lang.String prefix)
           
private static boolean startsWithIgnoreCase(java.lang.String str, java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OS_NAME

public static final java.lang.String OS_NAME

IS_FREEBSD

public static final boolean IS_FREEBSD
True if this is FreeBSD.


IS_LINUX

public static final boolean IS_LINUX
True if this is Linux.


IS_HPUX

public static final boolean IS_HPUX
True if this is HP-UX.


IS_AIX

public static final boolean IS_AIX
True if this is AIX.


IS_SUNOS

public static final boolean IS_SUNOS
True if this is SunOS.


IS_OS2

public static final boolean IS_OS2
True if this is OS/2.


IS_OSX

public static final boolean IS_OSX
True if this is the Mac OS X.


IS_WINDOWS

public static final boolean IS_WINDOWS
True if this is Windows.


IS_UNIX

public static final boolean IS_UNIX
True if this is some variant of Unix (OSX, Linux, Solaris, FreeBSD, etc).

Constructor Detail

OsVersion

public OsVersion()
Method Detail

startsWith

private static boolean startsWith(java.lang.String str,
                                  java.lang.String prefix)

startsWithIgnoreCase

private static boolean startsWithIgnoreCase(java.lang.String str,
                                            java.lang.String prefix)