FILE_SEPARATOR, JAVA_CLASS_PATH, JAVA_ENDORSED_DIRS, JAVA_HOME, JAVA_IO_TMPDIR, JAVA_RUNTIME_NAME, JAVA_RUNTIME_VERSION, JAVA_SPECIFICATION_VERSION, JAVA_VERSION, JAVA_VM_NAME, LINE_SEPARATOR, OS_ARCH, OS_NAME, OS_VERSION, PATH_SEPARATOR, SUN_ARCH_DATA_MODEL, SUN_AWT_EXCEPTION_HANDLER, USER_DIR, USER_HOME, USER_NAME
Modifier and Type | Method and Description |
---|---|
static void |
exitSystem(int exitCode)
Provides a central places for calling System.exit(exitCode);
|
static java.lang.String |
getFileSeparator() |
static java.lang.String |
getHostName() |
static java.util.List<java.lang.String> |
getJavaClassPath() |
static java.io.File |
getJavaHome() |
static int |
getJavaMajorVersion() |
static int |
getJavaMajorVersion(java.lang.String versionStr)
Extracts the major version number from the given version string
|
static int |
getJavaMinorVersion() |
static int |
getJavaMinorVersion(java.lang.String versionStr)
Extracts the minor version number from the given version string
|
static java.lang.String |
getJavaVersion()
Returns the version of the currently running Java VM
as defined by the system property 'java.version'.
|
static java.lang.String |
getJavaVMBitModel()
Tells the value of the system-property 'sun.arch.data.model'
(typically 32 of 64 bit address)
|
static java.lang.String |
getLineSeparator() |
static OsArchitecture |
getOsArchitecture()
Returns the architecture of the underlying operation system.
|
static java.lang.String |
getOsName()
Returns the OS-Name as read from the system-property 'os.name'
|
static OsType |
getOsType()
Returns the OS-Type of the current platform.
|
static java.lang.String |
getOsVersion()
Returns the OS-Version as read from the system-property 'os.version'
|
static java.lang.String |
getPathSeparator() |
static OsType[] |
getSupportedOsTypes()
Tells which
OsType s are supported by this framework. |
static java.io.File |
getTempDir() |
static java.io.File |
getUserHome() |
static java.lang.String |
getUserName()
Returns the OS-login-name of the user
as defined by the system property 'user.name'.
|
static java.io.File |
getUserWorkingDir() |
static boolean |
isHeadless()
Returns true if this system does NOT have a graphical environment
|
static boolean |
isUnix()
Tells whether the current platform is a UNIX system
|
static boolean |
isWindows()
Tells whether the current platform is a WINDOWS system
|
static void |
setTempDir(java.io.File tmpDir) |
static void |
setTempDir(java.lang.String dirName) |
public static boolean isHeadless()
public static int getJavaMajorVersion()
public static int getJavaMinorVersion()
public static int getJavaMajorVersion(java.lang.String versionStr)
public static int getJavaMinorVersion(java.lang.String versionStr)
public static OsArchitecture getOsArchitecture()
public static java.lang.String getJavaVersion()
public static java.lang.String getOsName()
public static java.lang.String getOsVersion()
public static java.lang.String getJavaVMBitModel()
public static java.lang.String getUserName()
public static OsType getOsType()
OsType
.public static OsType[] getSupportedOsTypes()
OsType
s are supported by this framework.public static boolean isWindows()
public static boolean isUnix()
public static java.io.File getTempDir()
public static void setTempDir(java.io.File tmpDir)
public static void setTempDir(java.lang.String dirName)
public static java.lang.String getLineSeparator()
public static java.lang.String getFileSeparator()
public static java.lang.String getPathSeparator()
public static java.io.File getJavaHome()
public static java.io.File getUserHome()
public static java.io.File getUserWorkingDir()
public static java.lang.String getHostName()
public static java.util.List<java.lang.String> getJavaClassPath()
public static void exitSystem(int exitCode)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.