opendap/src/main/java/opendap/dap/DDS.java
public void print(PrintWriter os)
    {
        os.println("Dataset {");
        for (Enumeration e = vars.elements(); e.hasMoreElements();) {
            BaseType bt = (BaseType) e.nextElement();
            bt.printDecl(os);
        }
        os.print("} ");
        if (getEncodedName() != null)
            os.print(getEncodedName());
        os.println(";");
    }
public void print(PrintWriter os)
    {
        os.println("Dataset {");
        for (Enumeration e = vars.elements(); e.hasMoreElements();) {
            BaseType bt = (BaseType) e.nextElement();
            bt.printDecl(os);
        }
        os.print("} ");
        if (getEncodedName() != null)
            os.print(getEncodedName());
        os.println(";");
    }
public void print ( PrintWriter os ) { os . println ( "Dataset {" ) ; for ( Enumeration e = vars . elements ( ) ; e . hasMoreElements ( ) ; ) { BaseType bt = ( BaseType ) e . nextElement ( ) ; bt . printDecl ( os ) ; } os . print ( "} " ) ; if ( getEncodedName ( ) != null ) os . print ( getEncodedName ( ) ) ; os . println ( ";" ) ; }
Print the <code>DDS</code> on the given <code>PrintWriter</code>.

@param os the <code>PrintWriter</code> to use for output.
Print the <code > DDS< / code > on the given <code > PrintWriter< / code > .