public class SystemProperties extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SystemProperties()
Utility class, disabled constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getFileEncoding()
The character encoding for the default locale.
|
static String |
getFileEncodingPkg()
The package that contains the converters that handle converting between local encodings and
Unicode.
|
static String |
getFileSeparator()
The platform-dependent file separator (e.g., "/" on UNIX, "\" for Windows).
|
static String |
getJavaClassPath()
The value of the CLASSPATH environment variable
|
static String |
getJavaClassVersion()
The version of the Java API.
|
static String |
getJavaCompiler()
The just-in-time compiler to use, if any.
|
static String |
getJavaHome()
The directory in which Java is installed.
|
static String |
getJavaIoTmpdir()
The directory in which java should create temporary files.
|
static String |
getJavaVendor()
A vendor-specific string.
|
static String |
getJavaVendorUrl()
A vendor URL.
|
static String |
getJavaVersion()
The version of the Java interpreter.
|
static String |
getLineSeparator()
The platform-dependent line separator (e.g., "\n" on UNIX, "\r\n" for Windows).
|
static String |
getOsArch()
The system architecture.
|
static String |
getOsName()
The name of the operating system.
|
static String |
getOsVersion()
The operating system version.
|
static String |
getPathSeparator()
The platform-dependent path separator (e.g., ":" on UNIX, "," for Windows).
|
static String |
getUserDir()
The current working directory when the properties were initialized.
|
static String |
getUserHome()
The home directory of the current user.
|
static String |
getUserLanguage()
The two-letter language code of the default locale.
|
static String |
getUserName()
The username of the current user.
|
static String |
getUserRegion()
The two-letter country code of the default locale.
|
static String |
getUserTimezone()
The default time zone.
|
protected SystemProperties()
public static String getFileEncoding()
public static String getFileEncodingPkg()
public static String getFileSeparator()
public static String getJavaClassPath()
public static String getJavaClassVersion()
public static String getJavaCompiler()
public static String getJavaHome()
public static String getJavaIoTmpdir()
public static String getJavaVersion()
public static String getJavaVendor()
public static String getJavaVendorUrl()
public static String getLineSeparator()
public static String getOsName()
public static String getOsArch()
public static String getOsVersion()
public static String getPathSeparator()
public static String getUserDir()
public static String getUserHome()
public static String getUserLanguage()
public static String getUserName()
public static String getUserRegion()
public static String getUserTimezone()
Copyright © 2012. All Rights Reserved.