dap4/d4servlet/src/main/java/dap4/servlet/SerialWriter.java
public void
    writeAtomicArray(DapType daptype, Object values)
            throws IOException
    {
        assert values != null && values.getClass().isArray();
        ByteBuffer buf = SerialWriter.encodeArray(daptype, values, this.order);
        byte[] bytes = buf.array();
        int len = buf.position();
        writeBytes(bytes, len);
        if(DEBUG) {
            System.err.printf("%s: ", daptype.getShortName());
            for(int i = 0; i < len; i++) {
                int x = (int) (order == ByteOrder.BIG_ENDIAN ? bytes[i] : bytes[(len - 1) - i]);
                System.err.printf("%02x", (int) (x & 0xff));
            }
            System.err.println();
        }
    }
public void
    writeAtomicArray(DapType daptype, Object values)
            throws IOException
    {
        assert values != null && values.getClass().isArray();
        ByteBuffer buf = SerialWriter.encodeArray(daptype, values, this.order);
        byte[] bytes = buf.array();
        int len = buf.position();
        writeBytes(bytes, len);
        if(DEBUG) {
            System.err.printf("%s: ", daptype.getShortName());
            for(int i = 0; i < len; i++) {
                int x = (int) (order == ByteOrder.BIG_ENDIAN ? bytes[i] : bytes[(len - 1) - i]);
                System.err.printf("%02x", (int) (x & 0xff));
            }
            System.err.println();
        }
    }
Write out an array of atomic values

@param daptype type of the values
@param values the array of values
@throws IOException