Package org.jdom.internal
Class SystemProperty
- java.lang.Object
-
- org.jdom.internal.SystemProperty
-
public final class SystemProperty extends Object
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.
-
-
Constructor Summary
Constructors Constructor Description SystemProperty()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
get(String property, String def)
Query the System properties for a particular property.
-
-
-
Method Detail
-
get
public static final String get(String property, 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
- The property to getdef
- The value to return if the property is not accessible or not set.- Returns:
- the appropriate property value.
-
-