protected void
    writeSequence(DataCursor data, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) data.getTemplate();
        DapSequence ds = (DapSequence) template.getBaseType();
        assert (this.ce.references(template));
        List<Slice> slices = ce.getConstrainedSlices(template);
        Odometer odom = Odometer.factory(slices);
        if(false) while(odom.hasNext()) {
            Index index = odom.next();
            DataCursor[] instance = (DataCursor[]) data.read(index);
            writeSequence1(instance[0], dst);
        }
        else {
            DataCursor[] instances = (DataCursor[]) data.read(slices);
            for(int i = 0; i < instances.length; i++) {
                writeSequence1(instances[i], dst);
            }

        }
    }
protected void
    writeSequence(DataCursor data, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) data.getTemplate();
        DapSequence ds = (DapSequence) template.getBaseType();
        assert (this.ce.references(template));
        List<Slice> slices = ce.getConstrainedSlices(template);
        Odometer odom = Odometer.factory(slices);
        if(false) while(odom.hasNext()) {
            Index index = odom.next();
            DataCursor[] instance = (DataCursor[]) data.read(index);
            writeSequence1(instance[0], dst);
        }
        else {
            DataCursor[] instances = (DataCursor[]) data.read(slices);
            for(int i = 0; i < instances.length; i++) {
                writeSequence1(instances[i], dst);
            }

        }
    }
protected void writeSequence ( DataCursor data , SerialWriter dst ) throws IOException { DapVariable template = ( DapVariable ) data . getTemplate ( ) ; DapSequence ds = ( DapSequence ) template . getBaseType ( ) ; assert ( this . ce . references ( template ) ) ; List < Slice > slices = ce . getConstrainedSlices ( template ) ; Odometer odom = Odometer . factory ( slices ) ; if ( false ) while ( odom . hasNext ( ) ) { Index index = odom . next ( ) ; DataCursor [ ] instance = ( DataCursor [ ] ) data . read ( index ) ; writeSequence1 ( instance [ 0 ] , dst ) ; } else { DataCursor [ ] instances = ( DataCursor [ ] ) data . read ( slices ) ; for ( int i = 0 ; i < instances . length ; i ++ ) { writeSequence1 ( instances [ i ] , dst ) ; } } }
Write out a single or array sequence instance

@param data
@param dst  - where to write
@throws dap4.core.util.DapException
Write out a single or array sequence instance