|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.util.SystemUtilities
Provides utility methods for gathering information about the system and activating system components.
This class contains an impure method,
by the 100% Pure Java standard.
This impurity is acceptable, as it is covered by variances
1, 5 as described in the 100% Pure Java Cookbook.
Please see the documentation for the
method
for more details.execute
| Constructor Summary | |
SystemUtilities()
|
|
| Method Summary | |
static void |
beep()
Sounds the machine beep. |
static void |
execute(String command)
Spawns a new system process using the given command line. |
static long |
getFreeMemory()
Returns the number of free bytes of system memory. |
static String |
getLineSeparator()
Returns the platform specific line separator. |
static long |
getTotalMemory()
Returns the total number of bytes of system memory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SystemUtilities()
| Method Detail |
public static void beep()
public static void execute(String command)
throws IOException
command - the full command line to execute
IOException - if there was an error
spawning the processpublic static long getFreeMemory()
getTotalMemory()public static String getLineSeparator()
'\n'
is returned by default.
public static long getTotalMemory()
getFreeMemory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||