FileDocCategorySizeDatePackage
XProperties.javaAPI DocAndroid 1.5 API2629Wed May 06 22:41:16 BST 2009com.vladium.util

XProperties

public class XProperties extends Properties
author
Vlad Roubtsov, (C) 2003

Fields Summary
Constructors Summary
public XProperties()

    
public XProperties(Properties base)

        super (base);
    
Methods Summary
public voidlist(java.io.PrintStream out)

        final Set /* String */ _propertyNames = new TreeSet ();
        
        // note: must use propertyNames() because that is the only method that recurses
        for (Enumeration propertyNames = propertyNames (); propertyNames.hasMoreElements (); )
        {
            _propertyNames.add (propertyNames.nextElement ());
        }
        
        for (Iterator i = _propertyNames.iterator (); i.hasNext (); )
        {
            final String n = (String) i.next ();
            final String v = getProperty (n);
            
            out.println (n + ":\t[" + v + "]");
        }
    
public voidlist(java.io.PrintWriter out)

        final Set /* String */ _propertyNames = new TreeSet ();
        
        // note: must use propertyNames() because that is the only method that recurses
        for (Enumeration propertyNames = propertyNames (); propertyNames.hasMoreElements (); )
        {
            _propertyNames.add (propertyNames.nextElement ());
        }
        
        for (Iterator i = _propertyNames.iterator (); i.hasNext (); )
        {
            final String n = (String) i.next ();
            final String v = getProperty (n);
            
            out.println (n + ":\t[" + v + "]");
        }