FileDocCategorySizeDatePackage
PropertyReader.javaAPI DocExample1022Tue Apr 04 20:10:14 BST 2000com.imaginary.util

PropertyReader

public class PropertyReader extends Object

Fields Summary
Constructors Summary
public PropertyReader()

        super();
    
Methods Summary
public voidread(java.io.File f)

        read(new PropertyResourceBundle(new FileInputStream(f)));
    
public voidread(java.util.ResourceBundle bundle)

        Properties p = System.getProperties();
        Enumeration keys = bundle.getKeys();

        while( keys.hasMoreElements() ) {
            String key = (String)keys.nextElement();
            
            if( !p.containsKey(key) ) {
                p.put(key, bundle.getString(key));
            }
        }
        System.setProperties(p);
    
public voidread(java.lang.String res)

        read(ResourceBundle.getBundle(res));