|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.willuhn.jameica.system.Platform
public class Platform
Hilfsklasse, um Plattform-/OS-spezfisches Verhalten zu behandeln.
| Field Summary | |
|---|---|
static int |
OS_LINUX
Konstante fuer: Linux. |
static int |
OS_LINUX_64
Konstante fuer: Linux 64Bit |
static int |
OS_MAC
Konstante fuer: Mac OS. |
static int |
OS_UNKNOWN
Konstante fuer: Betriebssystem unbekannt. |
static int |
OS_WINDOWS
Konstante fuer: Windows. |
static int |
OS_WINDOWS_64
Konstante fuer: Windows 64Bit. |
protected java.io.File |
workdir
|
| Constructor Summary | |
|---|---|
Platform()
|
|
| Method Summary | |
|---|---|
static Platform |
getInstance()
Liefert eine plattform-spezifische Instanz. |
int |
getOS()
Liefert das Betriebssystem. |
java.io.File |
getWorkdir()
Liefert das Benutzerverzeichnis, in dem Jameica alle Daten speichert. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OS_UNKNOWN
public static final int OS_LINUX
public static final int OS_WINDOWS
public static final int OS_MAC
public static final int OS_LINUX_64
public static final int OS_WINDOWS_64
protected java.io.File workdir
| Constructor Detail |
|---|
public Platform()
| Method Detail |
|---|
public static final Platform getInstance()
public java.io.File getWorkdir()
throws java.lang.Exception
java.lang.Exception - wenn das Benutzerverzeichnis nicht lesbar ist oder
nicht erstellt werden konnte.public int getOS()
OS_*.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||