opendap/src/main/java/opendap/servlet/ascii/asciiSeq.java
public void toASCII(PrintWriter pw,
                        boolean addName,
                        String rootName,
                        boolean newLine) {

        if (_Debug) System.out.println("asciiSeq.toASCII(" + addName + ",'" + rootName + "')  getName(): " + getEncodedName());
        //System.out.println("this: " + this + " Has "+allValues.size() + " elements.");

        if (rootName != null)
            rootName += "." + getEncodedName();
        else
            rootName = getEncodedName();

        pw.print(toASCIIFlatName(rootName));

/*
        for(Enumeration e1 = allValues.elements(); e1.hasMoreElements(); ) {
            // get next instance vector
            Vector v = (Vector)e1.nextElement();
            for(Enumeration e2 = v.elements(); e2.hasMoreElements(); ) {
                // get next instance variable
                BaseType bt = (BaseType)e2.nextElement();

        pw.print(bt.toASCIIFlatName(rootName)+",");
            }
        break;
        }
*/

        pw.println("");

        int i = 0;
        for (Enumeration e1 = allValues.elements(); e1.hasMoreElements();) {

            int j = 0;
            // get next instance vector
            Vector v = (Vector) e1.nextElement();
            for (Enumeration e2 = v.elements(); e2.hasMoreElements();) {
                // get next instance variable
                toASCII ta = (toASCII) e2.nextElement();

                if (j > 0) pw.print(", ");
                ta.toASCII(pw, false, rootName, false);
                j++;
            }
            pw.println("");
        }


        if (newLine)
            pw.print("\n");

    }
public void toASCII(PrintWriter pw,
                        boolean addName,
                        String rootName,
                        boolean newLine) {

        if (_Debug) System.out.println("asciiSeq.toASCII(" + addName + ",'" + rootName + "')  getName(): " + getEncodedName());
        //System.out.println("this: " + this + " Has "+allValues.size() + " elements.");

        if (rootName != null)
            rootName += "." + getEncodedName();
        else
            rootName = getEncodedName();

        pw.print(toASCIIFlatName(rootName));

/*
        for(Enumeration e1 = allValues.elements(); e1.hasMoreElements(); ) {
            // get next instance vector
            Vector v = (Vector)e1.nextElement();
            for(Enumeration e2 = v.elements(); e2.hasMoreElements(); ) {
                // get next instance variable
                BaseType bt = (BaseType)e2.nextElement();

        pw.print(bt.toASCIIFlatName(rootName)+",");
            }
        break;
        }
*/

        pw.println("");

        int i = 0;
        for (Enumeration e1 = allValues.elements(); e1.hasMoreElements();) {

            int j = 0;
            // get next instance vector
            Vector v = (Vector) e1.nextElement();
            for (Enumeration e2 = v.elements(); e2.hasMoreElements();) {
                // get next instance variable
                toASCII ta = (toASCII) e2.nextElement();

                if (j > 0) pw.print(", ");
                ta.toASCII(pw, false, rootName, false);
                j++;
            }
            pw.println("");
        }


        if (newLine)
            pw.print("\n");

    }
public void toASCII ( PrintWriter pw , boolean addName , String rootName , boolean newLine ) { if ( _Debug ) System . out . println ( "asciiSeq.toASCII(" + addName + ",'" + rootName + "')  getName(): " + getEncodedName ( ) ) ; //System.out.println("this: " + this + " Has "+allValues.size() + " elements.");
 if ( rootName != null ) rootName += "." + getEncodedName ( ) ; else rootName = getEncodedName ( ) ; pw . print ( toASCIIFlatName ( rootName ) ) ; /*
        for(Enumeration e1 = allValues.elements(); e1.hasMoreElements(); ) {
            // get next instance vector
            Vector v = (Vector)e1.nextElement();
            for(Enumeration e2 = v.elements(); e2.hasMoreElements(); ) {
                // get next instance variable
                BaseType bt = (BaseType)e2.nextElement();

        pw.print(bt.toASCIIFlatName(rootName)+",");
            }
        break;
        }
*/ pw . println ( "" ) ; int i = 0 ; for ( Enumeration e1 = allValues . elements ( ) ; e1 . hasMoreElements ( ) ; ) { int j = 0 ; // get next instance vector
 Vector v = ( Vector ) e1 . nextElement ( ) ; for ( Enumeration e2 = v . elements ( ) ; e2 . hasMoreElements ( ) ; ) { // get next instance variable
 toASCII ta = ( toASCII ) e2 . nextElement ( ) ; if ( j > 0 ) pw . print ( ", " ) ; ta . toASCII ( pw , false , rootName , false ) ; j ++ ; } pw . println ( "" ) ; } if ( newLine ) pw . print ( "\n" ) ; }
Returns a string representation of the variables value. This
is really foreshadowing functionality for Server types, but
as it may come in useful for clients it is added here. Simple
types (example: DFloat32) will return a single value. DConstuctor
and DVector types will be flattened. DStrings and DURL's will
have double quotes around them.

@param addName is a flag indicating if the variable name should
appear at the begining of the returned string.
Returns a string representation of the variables value . This is really foreshadowing functionality for Server types but as it may come in useful for clients it is added here . Simple types ( example : DFloat32 ) will return a single value . DConstuctor and DVector types will be flattened . DStrings and DURL s will have double quotes around them .