|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.util.SystemUtils
SystemUtils contains various useful system-level utilities for launching and managing processes.
| Field Summary | |
static boolean |
debug
Debug flag that determines if debugging is enabled for the SystemUtils class. |
static boolean |
IS_JAVA_1_1
Determine if the java version is 1.1.X |
static boolean |
IS_JAVA_1_2
Determine if the java version is 1.2.X |
static boolean |
IS_JAVA_1_3
Determine if the java version is 1.3.X |
static boolean |
IS_JAVA_1_4
Determine if the java version is 1.4.X |
static boolean |
IS_JAVA_1_5
Determine if the java version is 1.5.X |
static String |
JAVA_VERSION
The value of the System property java.version |
| Constructor Summary | |
SystemUtils()
|
|
| Method Summary | |
static void |
beep()
Sound a system-specific beep. |
static void |
execProcess(String[] args)
Execute a Process (return once the process is launched). |
static void |
execProcessAndMonitor(String[] args)
Execute an monitor a Process. |
static Integer |
execProcessAndWait(String[] args)
Execute a Process and wait until it completes. |
static String |
getSystemProperties()
Get the System properties |
static void |
launchWindowsBrowser(String url)
Launch a browser or file viewer on Windows. |
static void |
launchWindowsHelp(String helpFile)
Launch Windows Help. |
static boolean |
setDebug(boolean enable)
Enable/disable debugging of SystemUtils. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean debug
public static final String JAVA_VERSION
public static final boolean IS_JAVA_1_1
public static final boolean IS_JAVA_1_2
public static final boolean IS_JAVA_1_3
public static final boolean IS_JAVA_1_4
public static final boolean IS_JAVA_1_5
| Constructor Detail |
public SystemUtils()
| Method Detail |
public static String getSystemProperties()
public static boolean setDebug(boolean enable)
public static void execProcess(String[] args)
args - the arguments (parameters) for the process.public static Integer execProcessAndWait(String[] args)
args - the arguments (parameters) for the process.public static void execProcessAndMonitor(String[] args)
args - the arguments (parameters) for the process.public static void launchWindowsHelp(String helpFile)
helpFile - the path to the Windows help file.public static void launchWindowsBrowser(String url)
url - the URL or file path to be viewed.public static void beep()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||