|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<SystemProperty> chrriis.common.SystemProperty
public enum SystemProperty
This enum is supposed to be a complete list of available syste properties on
different JVM and Java versions. Use get()
or toString()
to
access the property values or set(String)
to update them - but only
those that aren't read-only (isReadOnly()
).
If you discover some new properties in your environment, please run the
contained main(String[])
method and send the output to me:
You may want to check for updates once in a while:
http://techblog.molindo.at/files/SystemProperty.java and
http://techblog.molindo.at/2009/11/java-system-properties.html
$LastChangedRevision: 4287 $
Method Summary | |
---|---|
String |
get()
|
String |
get(String defaultValue)
|
String |
getName()
|
boolean |
isReadOnly()
whether this property should not be modified (i.e. |
static void |
main(String[] args)
a simple main method to list available system properties. additionally, it generates Java code for yet unknown properties. |
String |
set(String value)
|
String |
toDebugString()
|
String |
toString()
|
static SystemProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SystemProperty[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SystemProperty FILE_ENCODING
public static final SystemProperty FILE_ENCODING_PKG
public static final SystemProperty FILE_SEPARATOR
public static final SystemProperty JAVA_AWT_GRAPHICSENV
public static final SystemProperty JAVA_AWT_PRINTERJOB
public static final SystemProperty JAVA_CLASS_PATH
public static final SystemProperty JAVA_CLASS_VERSION
public static final SystemProperty JAVA_ENDORSED_DIRS
public static final SystemProperty JAVA_EXT_DIRS
public static final SystemProperty JAVA_HOME
public static final SystemProperty JAVA_IO_TMPDIR
public static final SystemProperty JAVA_LIBRARY_PATH
public static final SystemProperty JAVA_RUNTIME_NAME
public static final SystemProperty JAVA_RUNTIME_VERSION
public static final SystemProperty JAVA_SPECIFICATION_NAME
public static final SystemProperty JAVA_SPECIFICATION_VENDOR
public static final SystemProperty JAVA_SPECIFICATION_VERSION
public static final SystemProperty JAVA_VERSION
public static final SystemProperty JAVA_VENDOR
public static final SystemProperty JAVA_VENDOR_URL
public static final SystemProperty JAVA_VENDOR_URL_BUG
public static final SystemProperty JAVAWEBSTART_VERSION
public static final SystemProperty JAVA_VM_INFO
public static final SystemProperty JAVA_VM_NAME
public static final SystemProperty JAVA_VM_SPECIFICATION_NAME
public static final SystemProperty JAVA_VM_SPECIFICATION_VENDOR
public static final SystemProperty JAVA_VM_SPECIFICATION_VERSION
public static final SystemProperty JAVA_VM_VERSION
public static final SystemProperty JAVA_VM_VENDOR
public static final SystemProperty LINE_SEPARATOR
public static final SystemProperty OS_NAME
public static final SystemProperty OS_ARCH
public static final SystemProperty OS_VERSION
public static final SystemProperty PATH_SEPARATOR
public static final SystemProperty SUN_ARCH_DATA_MODEL
public static final SystemProperty SUN_BOOT_CLASS_PATH
public static final SystemProperty SUN_BOOT_LIBRARY_PATH
public static final SystemProperty SUN_CPU_ENDIAN
public static final SystemProperty SUN_CPU_ISALIST
public static final SystemProperty SUN_IO_UNICODE_ENCODING
public static final SystemProperty SUN_JAVA_LAUNCHER
public static final SystemProperty SUN_JNU_ENCODING
public static final SystemProperty SUN_MANAGEMENT_COMPILER
public static final SystemProperty SUN_OS_PATCH_LEVEL
public static final SystemProperty USER_COUNTRY
public static final SystemProperty USER_DIR
public static final SystemProperty USER_HOME
public static final SystemProperty USER_LANGUAGE
public static final SystemProperty USER_NAME
public static final SystemProperty USER_TIMEZONE
public static final SystemProperty SUN_AWT_DISABLEMIXING
public static final SystemProperty SUN_AWT_NOERASEBACKGROUND
public static final SystemProperty SUN_AWT_XEMBEDSERVER
public static final SystemProperty SUN_DESKTOP
public static final SystemProperty AWT_NATIVE_DOUBLE_BUFFERING
public static final SystemProperty AWT_TOOLKIT
public static final SystemProperty FTP_NON_PROXY_HOSTS
public static final SystemProperty GOPHER_PROXY_SET
public static final SystemProperty HTTP_NON_PROXY_HOSTS
public static final SystemProperty MRJ_VERSION
public static final SystemProperty SOCKS_NON_PROXY_HOSTS
Method Detail |
---|
public static SystemProperty[] values()
for (SystemProperty c : SystemProperty.values()) System.out.println(c);
public static SystemProperty valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String get()
null
if there is no property with that key.System.getProperty(String)
,
AccessController.doPrivileged(PrivilegedAction)
public String get(String defaultValue)
defaultValue
- the default value to return if the property is not defined.
System.getProperty(String)
,
AccessController.doPrivileged(PrivilegedAction)
public String set(String value)
value
- the new value
UnsupportedOperationException
- if this property is read-onlySystem.setProperty(String, String)
,
AccessController.doPrivileged(PrivilegedAction)
,
isReadOnly()
public String getName()
public boolean isReadOnly()
System.setProperty(String, String)
directly. It's use is discouraged though (as it might not have the
desired effect)
true
if this property should not be modifiedpublic String toString()
toString
in class Enum<SystemProperty>
get()
get()
public String toDebugString()
public static void main(String[] args)
args
- arguments are ignored
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |