Top Description Constructors Methods
org.jdom2.internal

public final Class SystemProperty

extends Object
Class Inheritance

System.getProperty(...) requires security permissions in Applets, and some other cases and this class contains static methods that allow the security exceptions to fail silently.
Author
Rolf Lear

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final String

Returns:

the appropriate property value.
get
(final String
The property to get
property
,
final String
The value to return if the property is not accessible or not set.
def
)

Query the System properties for a particular property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SystemPropertyback to summary
public SystemProperty()

Method Detail

getback to summary
public static final String get(final String property, final String def)

Query the System properties for a particular property. If the property is not set, or not accessible, it returns the def value.

Parameters
property:String

The property to get

def:String

The value to return if the property is not accessible or not set.

Returns:String

the appropriate property value.