|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.tireme.shared.SystemUtils
public class SystemUtils
A simple, static class to access some System utilities.
| Field Summary | |
|---|---|
static int |
LINUX_PLATEFORM
Identify a linux plateform running the actual program |
static int |
WINDOWS_PLATEFORM
Identify a windows plateform running the actual program |
| Method Summary | |
|---|---|
void |
displayURL(java.lang.String url)
Display a file in the system browser. |
static SystemUtils |
getInstance()
|
int |
getPlateformType()
Provide the plateform type returning either WINDOWS_PLATEFORM or LINUX_PLATEFORM values. |
boolean |
isLinuxPlatform()
Try to determine whether this application is running under Linux by examing the "os.name" property. |
boolean |
isWindowsPlatform()
Try to determine whether this application is running under Windows or some other platform by examing the "os.name" property. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LINUX_PLATEFORM
public static final int WINDOWS_PLATEFORM
| Method Detail |
|---|
public static SystemUtils getInstance()
public void displayURL(java.lang.String url)
throws StandardException
Under Unix, the system browser is hard-coded to be 'mozilla'. Mozilla must be in your PATH for this to work. This has been tested with linux plateform.
Under Windows, this will bring up the default browser under windows, usually either Netscape or Microsoft IE. The default browser is determined by the OS. This has been tested under Windows 95/98/NT.
Note - you must include the url type -- either "http://" or "file://".
url - the file's url (the url must start with either "http://" or "file://").
StandardExceptionpublic int getPlateformType()
public boolean isLinuxPlatform()
public boolean isWindowsPlatform()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||