java.lang.Object
org.openpdf.text.utils.SystemPropertyUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBoolean(String propertyKey, boolean defaultValue) Similar toBoolean.getBoolean(String)but uses the given default value if property were not set.
-
Constructor Details
-
SystemPropertyUtil
public SystemPropertyUtil()
-
-
Method Details
-
getBoolean
Similar toBoolean.getBoolean(String)but uses the given default value if property were not set.- Parameters:
propertyKey- the system property keydefaultValue- the default value to use if property is not defined.- Returns:
- true if the property is defined and contains "true" (ignoring case), else if system property is not set then the provided defaultValue, else false.
-