public final class StringPropertyReplacer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NEWLINE
New line string constant
|
Constructor and Description |
---|
StringPropertyReplacer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
replaceProperties(java.lang.String string)
Go through the input string and replace any occurance of ${p} with
the System.getProperty(p) value.
|
static java.lang.String |
replaceProperties(java.lang.String string,
java.util.Properties props)
Go through the input string and replace any occurance of ${p} with
the props.getProperty(p) value.
|
public static java.lang.String replaceProperties(java.lang.String string)
string
- - the string with possible ${} referencespublic static java.lang.String replaceProperties(java.lang.String string, java.util.Properties props)
string
- - the string with possible ${} referencesprops
- - the source for ${x} property ref values, null means use System.getProperty()