dap4/d4servlet/src/main/java/dap4/servlet/DapSerializer.java
protected void
    writeStructure(DataCursor data, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) data.getTemplate();
        DapStructure ds = (DapStructure) template.getBaseType();
        assert (this.ce.references(template));
        List<Slice> slices = ce.getConstrainedSlices(template);
        Odometer odom = Odometer.factory(slices);
        while(odom.hasNext()) {
            Index index = odom.next();
            DataCursor[] instance = (DataCursor[]) data.read(index);
            writeStructure1(instance[0], dst);
        }
    }
protected void
    writeStructure(DataCursor data, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) data.getTemplate();
        DapStructure ds = (DapStructure) template.getBaseType();
        assert (this.ce.references(template));
        List<Slice> slices = ce.getConstrainedSlices(template);
        Odometer odom = Odometer.factory(slices);
        while(odom.hasNext()) {
            Index index = odom.next();
            DataCursor[] instance = (DataCursor[]) data.read(index);
            writeStructure1(instance[0], dst);
        }
    }
protected void writeStructure ( DataCursor data , SerialWriter dst ) throws IOException { DapVariable template = ( DapVariable ) data . getTemplate ( ) ; DapStructure ds = ( DapStructure ) template . getBaseType ( ) ; assert ( this . ce . references ( template ) ) ; List < Slice > slices = ce . getConstrainedSlices ( template ) ; Odometer odom = Odometer . factory ( slices ) ; while ( odom . hasNext ( ) ) { Index index = odom . next ( ) ; DataCursor [ ] instance = ( DataCursor [ ] ) data . read ( index ) ; writeStructure1 ( instance [ 0 ] , dst ) ; } }
Write out a scalar or array structure instance

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