opendap/src/main/java/opendap/dap/AttributeTable.java
public void print(PrintWriter os, String pad) {

        if (Debug.isSet("AttributTable")) os.println("Entered AttributeTable.print()");

        os.println(pad + getEncodedName() + " {");
        for (Enumeration e = getNames(); e.hasMoreElements();) {

            String name = (String) e.nextElement();
            Attribute a = getAttribute(name);
            if (a != null)
                a.print(os, pad + "    ");


        }
        os.println(pad + "}");
        if (Debug.isSet("AttributTable")) os.println("Leaving AttributeTable.print()");
        os.flush();
    }
public void print(PrintWriter os, String pad) {

        if (Debug.isSet("AttributTable")) os.println("Entered AttributeTable.print()");

        os.println(pad + getEncodedName() + " {");
        for (Enumeration e = getNames(); e.hasMoreElements();) {

            String name = (String) e.nextElement();
            Attribute a = getAttribute(name);
            if (a != null)
                a.print(os, pad + "    ");


        }
        os.println(pad + "}");
        if (Debug.isSet("AttributTable")) os.println("Leaving AttributeTable.print()");
        os.flush();
    }
Print the attribute table on the given <code>PrintWriter</code>.

@param os  the <code>PrintWriter</code> to use for output.
@param pad the number of spaces to indent each line.