|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutils.OsUtils
public class OsUtils
Copyright DocJava, inc. User: lyon
Date: Dec 17, 2004 Time: 9:20:42 AM
Constructor Summary | |
---|---|
OsUtils()
|
Method Summary | |
---|---|
static java.lang.String[] |
executeCommand(java.lang.String com)
Execute a command on the local OS |
static double |
get15MinuteLoad()
this is an experimental method that is supposed to compute the load on the CPU for the last 15 minutes. |
static java.lang.String |
getArchName()
|
static java.lang.String |
getOsName()
A what to get the properties os.name |
static boolean |
isFreeBsd()
|
static boolean |
isi386()
|
static boolean |
isIntelMac()
|
static boolean |
isLinux()
|
static boolean |
isMacOs()
|
static boolean |
isNetBsd()
|
static boolean |
isOsKnown()
Runs through the list of known operating systems |
static boolean |
isOsPrefix(java.lang.String prefix)
|
static boolean |
isPPC()
|
static boolean |
isPPCMac()
|
static boolean |
isSolaris()
|
static boolean |
isWindows()
|
static boolean |
isWindows(java.lang.String str)
|
static boolean |
isWindows2000()
|
static boolean |
isWindows95()
|
static boolean |
isWindows98()
|
static boolean |
isWindowsNt()
|
static boolean |
isWindowsXp()
|
static boolean |
isx386()
|
static void |
main(java.lang.String[] args)
|
static void |
print(java.lang.String[] strings)
A method for printing an array of strings. |
static void |
runExec(java.lang.String[] args,
java.io.File workingDirectory)
Run the args array using the workingDirectory as the home. |
static void |
testListProperties()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OsUtils()
Method Detail |
---|
public static boolean isOsKnown()
public static double get15MinuteLoad()
public static void print(java.lang.String[] strings)
strings
- public static java.lang.String getOsName()
public static java.lang.String getArchName()
public static boolean isi386()
public static boolean isx386()
public static boolean isIntelMac()
public static boolean isPPC()
public static boolean isPPCMac()
public static boolean isMacOs()
public static boolean isLinux()
public static boolean isNetBsd()
public static boolean isFreeBsd()
public static boolean isSolaris()
public static boolean isWindowsNt()
public static boolean isWindows2000()
public static boolean isWindows98()
public static boolean isWindows95()
public static boolean isWindowsXp()
public static boolean isWindows(java.lang.String str)
public static boolean isWindows()
public static java.lang.String[] executeCommand(java.lang.String com) throws java.io.IOException
com
-
java.io.IOException
public static boolean isOsPrefix(java.lang.String prefix)
public static void testListProperties()
public static void main(java.lang.String[] args)
public static void runExec(java.lang.String[] args, java.io.File workingDirectory) throws java.io.IOException
args
- workingDirectory
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |