public class PropertiesUtil extends Object
Constructor and Description |
---|
PropertiesUtil(Properties props) |
PropertiesUtil(String propsLocn) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty(String name) |
boolean |
getBooleanProperty(String name,
boolean defaultValue) |
int |
getIntegerProperty(String name,
int defaultValue) |
long |
getLongProperty(String name,
long defaultValue) |
static PropertiesUtil |
getProperties() |
String |
getStringProperty(String name) |
String |
getStringProperty(String name,
String defaultValue) |
static Properties |
getSystemProperties()
Return the system properties or an empty Properties object if an error occurs.
|
public PropertiesUtil(Properties props)
public PropertiesUtil(String propsLocn)
public static PropertiesUtil getProperties()
public int getIntegerProperty(String name, int defaultValue)
public long getLongProperty(String name, long defaultValue)
public boolean getBooleanProperty(String name)
public boolean getBooleanProperty(String name, boolean defaultValue)
public static Properties getSystemProperties()
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.