sun.security.util
Class PropertyExpander

java.lang.Object
  extended by 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.


Nested Class Summary
static class PropertyExpander.ExpandException
           
 
Constructor Summary
PropertyExpander()
           
 
Method Summary
static String expand(String value)
           
static String expand(String value, boolean encodeURL)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyExpander

public PropertyExpander()
Method Detail

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