dap4/d4servlet/src/main/java/dap4/servlet/DapSerializer.java
protected void
    writeRecord(DataCursor record, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) record.getTemplate();
        DapSequence seq = (DapSequence) template.getBaseType();
        List<DapVariable> fields = seq.getFields();
        for(int i = 0; i < fields.size(); i++) {
            DapVariable field = fields.get(i);
            if(!this.ce.references(field)) continue; // not in the view
            DataCursor df = (DataCursor) record.readField(i);
            writeVariable(df, dst);
        }
    }
protected void
    writeRecord(DataCursor record, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) record.getTemplate();
        DapSequence seq = (DapSequence) template.getBaseType();
        List<DapVariable> fields = seq.getFields();
        for(int i = 0; i < fields.size(); i++) {
            DapVariable field = fields.get(i);
            if(!this.ce.references(field)) continue; // not in the view
            DataCursor df = (DataCursor) record.readField(i);
            writeVariable(df, dst);
        }
    }
Write out a single Record instance.

@param record the record data cursor
@param dst    to which to write
@throws dap4.core.util.DapException