dap4/d4servlet/src/main/java/dap4/servlet/DapSerializer.java
protected void
    writeAtomicVariable(DataCursor data, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) data.getTemplate();
        assert (this.ce.references(template));
        DapType basetype = template.getBaseType();
        // get the slices from constraint
        List<Slice> slices = ce.getConstrainedSlices(template);
        if(slices == null)
            throw new DapException("Unknown variable: " + template.getFQN());
        Object values = data.read(slices);
        dst.writeAtomicArray(basetype, values);
    }
protected void
    writeAtomicVariable(DataCursor data, SerialWriter dst)
            throws IOException
    {
        DapVariable template = (DapVariable) data.getTemplate();
        assert (this.ce.references(template));
        DapType basetype = template.getBaseType();
        // get the slices from constraint
        List<Slice> slices = ce.getConstrainedSlices(template);
        if(slices == null)
            throw new DapException("Unknown variable: " + template.getFQN());
        Object values = data.read(slices);
        dst.writeAtomicArray(basetype, values);
    }
Write out an atomic variable.

@param data
@param dst
@throws dap4.core.util.DapException