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

        if (_Debug) {
            System.out.println("asciiArray.toASCII(" + addName + ",'" + rootName + "')  getName(): " + getEncodedName());
            System.out.println("  PrimitiveVector size = " + getPrimitiveVector().getLength());
        }

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

        int dims = numDimensions();
        int shape[] = new int[dims];
        int i = 0;

        for (Enumeration e = getDimensions(); e.hasMoreElements();) {
            DArrayDimension d = (DArrayDimension) e.nextElement();
            shape[i++] = d.getSize();
        }

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

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

        if (_Debug) {
            System.out.println("asciiArray.toASCII(" + addName + ",'" + rootName + "')  getName(): " + getEncodedName());
            System.out.println("  PrimitiveVector size = " + getPrimitiveVector().getLength());
        }

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

        int dims = numDimensions();
        int shape[] = new int[dims];
        int i = 0;

        for (Enumeration e = getDimensions(); e.hasMoreElements();) {
            DArrayDimension d = (DArrayDimension) e.nextElement();
            shape[i++] = d.getSize();
        }

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

    }
public void toASCII ( PrintWriter pw , boolean addName , String rootName , boolean newLine ) { if ( _Debug ) { System . out . println ( "asciiArray.toASCII(" + addName + ",'" + rootName + "')  getName(): " + getEncodedName ( ) ) ; System . out . println ( "  PrimitiveVector size = " + getPrimitiveVector ( ) . getLength ( ) ) ; } if ( addName ) pw . print ( "\n" ) ; int dims = numDimensions ( ) ; int shape [ ] = new int [ dims ] ; int i = 0 ; for ( Enumeration e = getDimensions ( ) ; e . hasMoreElements ( ) ; ) { DArrayDimension d = ( DArrayDimension ) e . nextElement ( ) ; shape [ i ++ ] = d . getSize ( ) ; } 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 .