opendap/src/main/java/opendap/util/iniFile.java
public boolean setSection(String sectionName)
    {

        if(sectionNames == null) {
            System.err.println(errMsg);
            return (false);
        }

        int sectionIndex = 0;

        Enumeration e = sectionNames.elements();

        boolean done = false;
        while(!done && e.hasMoreElements()) {
            String thisName = (String) e.nextElement();
            if(sectionName.equalsIgnoreCase(thisName))
                done = true;
            else
                sectionIndex++;
        }

        if(!done)
            return (false);

        currentSection = sectionIndex;

        return (true);
    }
public boolean setSection(String sectionName)
    {

        if(sectionNames == null) {
            System.err.println(errMsg);
            return (false);
        }

        int sectionIndex = 0;

        Enumeration e = sectionNames.elements();

        boolean done = false;
        while(!done && e.hasMoreElements()) {
            String thisName = (String) e.nextElement();
            if(sectionName.equalsIgnoreCase(thisName))
                done = true;
            else
                sectionIndex++;
        }

        if(!done)
            return (false);

        currentSection = sectionIndex;

        return (true);
    }
public boolean setSection ( String sectionName ) { if ( sectionNames == null ) { System . err . println ( errMsg ) ; return ( false ) ; } int sectionIndex = 0 ; Enumeration e = sectionNames . elements ( ) ; boolean done = false ; while ( ! done && e . hasMoreElements ( ) ) { String thisName = ( String ) e . nextElement ( ) ; if ( sectionName . equalsIgnoreCase ( thisName ) ) done = true ; else sectionIndex ++ ; } if ( ! done ) return ( false ) ; currentSection = sectionIndex ; return ( true ) ; }
**********************************************************************
Set the section of the iniFile that you wish to work with. This is
persistent for the life of the object, or until it's set again.

@param sectionName A <code>String</code> containing the name of the
section that is desired.
@return true if the section exists and the operation was successful,
false otherwise.
********************************************************************** Set the section of the iniFile that you wish to work with . This is persistent for the life of the object or until it s set again .