|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.hippo.portal.util.PropertiesReplacer
public class PropertiesReplacer
Utility class which can replace embedded ${<propertyname>} type properties in files or strings.
| Constructor Summary | |
|---|---|
PropertiesReplacer()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
replaceProperties(java.io.InputStream in,
java.util.Map properties)
Replace embedded ${<propertyname>} type properties with a provided map of propertyname/value objects. |
static java.lang.String |
replaceProperties(java.io.Reader in,
java.util.Map properties)
Replace embedded ${<propertyname>} type properties with a provided map of propertyname/value objects. |
static java.lang.String |
replaceProperties(java.lang.String in,
java.util.Map properties)
Replace embedded ${<propertyname>} type properties with a provided map of propertyname/value objects. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesReplacer()
| Method Detail |
|---|
public static java.lang.String replaceProperties(java.io.InputStream in,
java.util.Map properties)
throws java.io.IOException
replaceProperties(Reader, Map) using an InputStreamReader wrapping the InputStream input parameter.
in - the InputStream inputproperties - map containing the property/value objects
java.io.IOException
public static java.lang.String replaceProperties(java.lang.String in,
java.util.Map properties)
throws java.io.IOException
replaceProperties(Reader, Map) using an StringReader wrapping the String input parameter.
in - the String inputproperties - map containing the property/value objects
java.io.IOException
public static java.lang.String replaceProperties(java.io.Reader in,
java.util.Map properties)
throws java.io.IOException
in - the Reader inputproperties - map containing the property/value objects
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||