com.googlecode.icegem.utils
Class PropertiesHelper
java.lang.Object
com.googlecode.icegem.utils.PropertiesHelper
public class PropertiesHelper
- extends java.lang.Object
Loads the Properties from property file and allows to retrieve properties in
more advanced way.
|
Constructor Summary |
PropertiesHelper(java.lang.String filename)
Creates new helper. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesHelper
public PropertiesHelper(java.lang.String filename)
throws java.io.IOException
- Creates new helper.
- Parameters:
filename - Properties file name.
- Throws:
java.io.IOException - If failed to open specified file.
getStringProperty
public java.lang.String getStringProperty(java.lang.String key)
getStringProperty
public java.lang.String getStringProperty(java.lang.String key,
java.lang.Object... parameters)
getIntProperty
public int getIntProperty(java.lang.String key)
getLongProperty
public long getLongProperty(java.lang.String key)
getProperties
public java.util.Properties getProperties()
propertiesToString
public static java.lang.String propertiesToString(java.util.Properties properties)
stringToProperties
public static java.util.Properties stringToProperties(java.lang.String s)
filterProperties
public static java.util.Properties filterProperties(java.util.Properties properties,
java.lang.String prefix)
propertiesToVMOptions
public static java.lang.String[] propertiesToVMOptions(java.util.Properties properties)
Copyright © 2011. All Rights Reserved.