protected void
    writeVariable(DataCursor data, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) data.getTemplate();
        dst.startVariable();
        switch (data.getScheme()) {
        case ATOMIC:
            writeAtomicVariable(data, dst);
            break;
        case STRUCTARRAY:
            //case STRUCTURE:
            writeStructure(data, dst);
            break;
        case SEQARRAY:
            //case SEQUENCE:
            writeSequence(data, dst);
            break;
        default:
            assert false : "Unexpected variable type: " + data.toString();
        }
        dst.endVariable();
    }
protected void writeVariable ( DataCursor data , SerialWriter dst ) throws IOException { DapVariable template = ( DapVariable ) data . getTemplate ( ) ; dst . startVariable ( ) ; switch ( data . getScheme ( ) ) { case ATOMIC : writeAtomicVariable ( data , dst ) ; break ; case STRUCTARRAY : writeStructure ( data , dst ) ; break ; case SEQARRAY : writeSequence ( data , dst ) ; break ; default : assert false : "Unexpected variable type: " + data . toString ( ) ; } dst . endVariable ( ) ; }
@param data - cursor referencing what to write
@param dst  - where to write
@throws IOException