|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.runtime.RuntimeProperty
com.mucommander.runtime.OsFamily
public class OsFamily
This class represents a non-versioned family of operating system, like Windows or Linux.
The current runtime instance is determined using the value of the os.name system property.
OsFamilies,
OsVersion| Field Summary |
|---|
| Fields inherited from class com.mucommander.runtime.RuntimeProperty |
|---|
stringRepresentation |
| Fields inherited from interface com.mucommander.runtime.OsFamilies |
|---|
AIX, FREEBSD, HP_UX, LINUX, MAC_OS_X, OPENVMS, OS_2, SOLARIS, UNKNOWN_OS_FAMILY, WINDOWS |
| Constructor Summary | |
|---|---|
protected |
OsFamily(java.lang.String stringRepresentation)
|
| Method Summary | |
|---|---|
static OsFamily |
getCurrent()
Returns the OS family of the current runtime environment. |
protected RuntimeProperty |
getCurrentValue()
Returns the current runtime environment's value of this runtime property. |
static java.lang.String |
getRawSystemProperty()
Returns the value of the system property which serves to detect the OS family at runtime. |
static void |
init()
Determines the current value by parsing the corresponding system property. |
boolean |
isUnixBased()
Returns true if this OS family is UNIX-based. |
| Methods inherited from class com.mucommander.runtime.RuntimeProperty |
|---|
isCurrent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected OsFamily(java.lang.String stringRepresentation)
| Method Detail |
|---|
public static void init()
public static OsFamily getCurrent()
public boolean isUnixBased()
true if this OS family is UNIX-based. The following OS families are considered UNIX-based:
OsFamilies.LINUXOsFamilies.MAC_OS_XOsFamilies.SOLARISOsFamilies.FREEBSDOsFamilies.AIXOsFamilies.HP_UXOsFamilies.UNKNOWN_OS_FAMILY: the reasonning for this being that most alternative OSes are Unix-based.
true if the current OS is UNIX-basedpublic static java.lang.String getRawSystemProperty()
protected RuntimeProperty getCurrentValue()
RuntimeProperty
getCurrentValue in class RuntimeProperty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard