|
||||||||||
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 void |
displayArch()
|
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 |
isi686()
|
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 java.lang.String |
runExec(java.lang.String[] args,
java.io.File workingDirectory)
Run the args array using the workingDirectory as the home. |
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 java.lang.String getOsName()
public static java.lang.String getArchName()
public static boolean isi386()
public static boolean isi686()
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 boolean isOsPrefix(java.lang.String prefix)
public static java.lang.String runExec(java.lang.String[] args, java.io.File workingDirectory) throws java.io.IOException
args
- an operating system command to runworkingDirectory
- the place in which to run the command
java.io.IOException
- if the command is unable to executepublic static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static void displayArch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |