JDOM
2.0.5

org.jdom2.internal
Class SystemProperty

java.lang.Object
  extended by org.jdom2.internal.SystemProperty

public final class SystemProperty
extends java.lang.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.

Author:
Rolf Lear

Constructor Summary
SystemProperty()
           
 
Method Summary
static java.lang.String get(java.lang.String property, java.lang.String def)
          Query the System properties for a particular property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemProperty

public SystemProperty()
Method Detail

get

public static final java.lang.String get(java.lang.String property,
                                         java.lang.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 get
def - The value to return if the property is not accessible or not set.
Returns:
the appropriate property value.

JDOM
2.0.5

Copyright 2013 Jason Hunter, Brett McLaughlin. All Rights Reserved.