opendap/src/main/java/opendap/dap/DSequence.java
public void externalize(DataOutputStream sink) throws IOException {

        // loop until end of sequence
        for (int i = 0; i < allValues.size(); i++) {

// ************* Pulled out the getLevel() check in order to support the "new"
// and "improved" serialization of OPeNDAP sequences. 8/31/01 ndp
//            if (getLevel() == 0)
            writeMarker(sink, START_OF_INSTANCE);

            Vector rowVec = (Vector) allValues.elementAt(i);

            for (int j = 0; j < rowVec.size(); j++) {
                ClientIO bt = (ClientIO) rowVec.elementAt(j);
                bt.externalize(sink);
            }

        }
// ************* Pulled out the getLevel() check in order to support the "new"
// and "improved" serialization of OPeNDAP sequences. 8/31/01 ndp
//        if (getLevel() == 0)
        writeMarker(sink, END_OF_SEQUENCE);
    }
public void externalize(DataOutputStream sink) throws IOException {

        // loop until end of sequence
        for (int i = 0; i < allValues.size(); i++) {

// ************* Pulled out the getLevel() check in order to support the "new"
// and "improved" serialization of OPeNDAP sequences. 8/31/01 ndp
//            if (getLevel() == 0)
            writeMarker(sink, START_OF_INSTANCE);

            Vector rowVec = (Vector) allValues.elementAt(i);

            for (int j = 0; j < rowVec.size(); j++) {
                ClientIO bt = (ClientIO) rowVec.elementAt(j);
                bt.externalize(sink);
            }

        }
// ************* Pulled out the getLevel() check in order to support the "new"
// and "improved" serialization of OPeNDAP sequences. 8/31/01 ndp
//        if (getLevel() == 0)
        writeMarker(sink, END_OF_SEQUENCE);
    }
public void externalize ( DataOutputStream sink ) throws IOException { // loop until end of sequence
 for ( int i = 0 ; i < allValues . size ( ) ; i ++ ) { // ************* Pulled out the getLevel() check in order to support the "new"
 // and "improved" serialization of OPeNDAP sequences. 8/31/01 ndp
 //            if (getLevel() == 0)
 writeMarker ( sink , START_OF_INSTANCE ) ; Vector rowVec = ( Vector ) allValues . elementAt ( i ) ; for ( int j = 0 ; j < rowVec . size ( ) ; j ++ ) { ClientIO bt = ( ClientIO ) rowVec . elementAt ( j ) ; bt . externalize ( sink ) ; } } // ************* Pulled out the getLevel() check in order to support the "new"
 // and "improved" serialization of OPeNDAP sequences. 8/31/01 ndp
 //        if (getLevel() == 0)
 writeMarker ( sink , END_OF_SEQUENCE ) ; }
Writes data to a <code>DataOutputStream</code>. This method is used
primarily by GUI clients which need to download OPeNDAP data, manipulate
it, and then re-save it as a binary file.

@param sink a <code>DataOutputStream</code> to write to.
@throws IOException thrown on any <code>OutputStream</code>
exception.
Writes data to a <code > DataOutputStream< / code > . This method is used primarily by GUI clients which need to download OPeNDAP data manipulate it and then re - save it as a binary file .