dap4/d4lib/src/main/java/dap4/dap4lib/serial/D4Cursor.java
protected Object
    readAtomic(List<Slice> slices)
            throws DapException
    {
        if(slices == null)
            throw new DapException("DataCursor.read: null set of slices");
        assert this.scheme == Scheme.ATOMIC;
        DapVariable atomvar = (DapVariable) getTemplate();
        int rank = atomvar.getRank();
        assert slices != null && ((rank == 0 && slices.size() == 1) || (slices.size() == rank));
        DapType basetype = atomvar.getBaseType();
        return readAs(atomvar, basetype, slices);
    }
protected Object
    readAtomic(List<Slice> slices)
            throws DapException
    {
        if(slices == null)
            throw new DapException("DataCursor.read: null set of slices");
        assert this.scheme == Scheme.ATOMIC;
        DapVariable atomvar = (DapVariable) getTemplate();
        int rank = atomvar.getRank();
        assert slices != null && ((rank == 0 && slices.size() == 1) || (slices.size() == rank));
        DapType basetype = atomvar.getBaseType();
        return readAs(atomvar, basetype, slices);
    }
Support methods