opendap/src/main/java/opendap/util/iniFile.java
public String getProperty(String propertyName)
    {

        if(currentSection < 0) {
            String msg = "You must use the setSection() method before you can use getProperty().";
            System.err.println(msg);
            return (msg);
        }
        String pair[] = null;

        Enumeration e = ((Vector) sectionProperties.elementAt(currentSection)).elements();
        boolean done = false;
        while(!done && e.hasMoreElements()) {

            pair = (String[]) e.nextElement();

            if(pair[0].equalsIgnoreCase(propertyName))
                done = true;
        }

        if(done)
            return (pair[1]);


        return (null);

    }
public String getProperty(String propertyName)
    {

        if(currentSection < 0) {
            String msg = "You must use the setSection() method before you can use getProperty().";
            System.err.println(msg);
            return (msg);
        }
        String pair[] = null;

        Enumeration e = ((Vector) sectionProperties.elementAt(currentSection)).elements();
        boolean done = false;
        while(!done && e.hasMoreElements()) {

            pair = (String[]) e.nextElement();

            if(pair[0].equalsIgnoreCase(propertyName))
                done = true;
        }

        if(done)
            return (pair[1]);


        return (null);

    }
public String getProperty ( String propertyName ) { if ( currentSection < 0 ) { String msg = "You must use the setSection() method before you can use getProperty()." ; System . err . println ( msg ) ; return ( msg ) ; } String pair [ ] = null ; Enumeration e = ( ( Vector ) sectionProperties . elementAt ( currentSection ) ) . elements ( ) ; boolean done = false ; while ( ! done && e . hasMoreElements ( ) ) { pair = ( String [ ] ) e . nextElement ( ) ; if ( pair [ 0 ] . equalsIgnoreCase ( propertyName ) ) done = true ; } if ( done ) return ( pair [ 1 ] ) ; return ( null ) ; }
**********************************************************************
Get the named property from the current section.

@param propertyName The name of the desired property.
@return A <code>String</code> containing the value of property of the
passed property name. Returns null if the property name doesn't exist
or is not set.
********************************************************************** Get the named property from the current section .