Package arc.util
Class OS
java.lang.Object
arc.util.OS
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static final String
JVM version; may contain underscores.static final String
Operating system architecture, e.g.static final String
Either 32 or 64.static final String
Name of the OS being used.static final String
Version of the OS being used; format varies based on OS.static final String
User's home directory.static final String
User's account name. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
Executes, returns the result output string with the err output optionally tacked on.static String
Executes a process.static boolean
static boolean
static Fi
getAppDataDirectory
(String appname) static String
getAppDataDirectoryString
(String appname) static String
static boolean
static boolean
static String
static String
propNoNull
(String name)
-
Field Details
-
cores
public static final int cores -
username
User's account name. -
userHome
User's home directory. -
osName
Name of the OS being used. -
osVersion
Version of the OS being used; format varies based on OS. -
osArch
Operating system architecture, e.g. "amd64" -
osArchBits
Either 32 or 64. -
javaVersion
JVM version; may contain underscores. Examples: 1.8.0_211 (Java 8 update 211), 12.0.1 (Java 12) -
isWindows
public static boolean isWindows -
isLinux
public static boolean isLinux -
isMac
public static boolean isMac -
isIos
public static boolean isIos -
isAndroid
public static boolean isAndroid -
isARM
public static boolean isARM -
is64Bit
public static boolean is64Bit
-
-
Constructor Details
-
OS
public OS()
-
-
Method Details
-
getAppDataDirectoryString
-
getWindowsTmpDir
-
exec
Executes, returns the result output string with the err output optionally tacked on. -
exec
Executes a process. Does not include the error output stream. -
execSafe
-
execSafe
-
getAppDataDirectory
-
hasProp
-
prop
-
hasEnv
-
env
-
propNoNull
-