dap4/d4servlet/src/main/java/dap4/servlet/DapSerializer.java
protected void
    writeSequence1(DataCursor instance, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) instance.getTemplate();
        DapSequence seq = (DapSequence) template.getBaseType();
        assert (this.ce.references(template));
        long nrecs = instance.getRecordCount();
        dst.writeCount(nrecs);
        for(long i = 0; i < nrecs; i++) {
            DataCursor record = instance.readRecord(i);
            writeRecord(record, dst);
        }
    }
protected void
    writeSequence1(DataCursor instance, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) instance.getTemplate();
        DapSequence seq = (DapSequence) template.getBaseType();
        assert (this.ce.references(template));
        long nrecs = instance.getRecordCount();
        dst.writeCount(nrecs);
        for(long i = 0; i < nrecs; i++) {
            DataCursor record = instance.readRecord(i);
            writeRecord(record, dst);
        }
    }
Write out a single Sequence of records
(Eventually use any filter in the DapVariable)

@param instance the sequence instance
@param dst      write target
@throws dap4.core.util.DapException