sun.security.util
Class PropertyExpander
java.lang.Object
sun.security.util.PropertyExpander
public class PropertyExpander
- extends Object
A utility class to expand properties embedded in a string.
Strings of the form ${some.property.name} are expanded to
be the value of the property. Also, the special ${/} property
is expanded to be the same as file.separator. If a property
is not set, a GeneralSecurityException will be thrown.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyExpander
public PropertyExpander()
expand
public static String expand(String value)
throws PropertyExpander.ExpandException
- Throws:
PropertyExpander.ExpandException
expand
public static String expand(String value,
boolean encodeURL)
throws PropertyExpander.ExpandException
- Throws:
PropertyExpander.ExpandException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception