|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.util.PropertyUtils
public class PropertyUtils
PropertyUtils class to enable the writing back of Properties
Constructor Summary | |
---|---|
PropertyUtils()
|
Method Summary | |
---|---|
Properties |
getProperties(String propertyResourceLocation)
Retrieves the properties from the specified properties file |
Properties |
getPropertiesFromStream(InputStream is)
Loads Properties from an InputStream |
boolean |
removeProperty(String propertyResourceLocation,
String key)
Removes the specified property from the specified property file |
void |
updateProperty(String propertyResourceLocation,
String key,
String value)
Updates the specified properties file with the specified key/value property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyUtils()
Method Detail |
---|
public Properties getProperties(String propertyResourceLocation)
propertyResourceLocation
- location of the properties file
public Properties getPropertiesFromStream(InputStream is)
is
- InputStream containing properties to load
public boolean removeProperty(String propertyResourceLocation, String key)
propertyResourceLocation
- location of the properties filekey
- the key of the property to be removed
true iff the specified property has been successfully removed from the properties file; false
otherwise
public void updateProperty(String propertyResourceLocation, String key, String value)
propertyResourceLocation
- location of the properties filekey
- the key for the property to be added/updatedvalue
- the value of the property to be added/updated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |