com.ibm.security12.sun.security.util
Class PropertyExpander

java.lang.Object
  |
  +--com.ibm.security12.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.

Version:
1.2
Author:
Roland Schemers

Inner Class Summary
static interface PropertyExpander.ExpandException
           
 
Constructor Summary
PropertyExpander()
           
 
Method Summary
static String expand(String value)
           
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

main

public static void main(String[] args)
                 throws Exception