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 .