private void writeIntArray(Object value, int type) {
        writeList.clear();
        int len = Array.getLength(value);
        if (len > 0) {
            if (type == ElementType.TYPE_INTEGER_ARRAY) {
                for (int i=0;i<len;i++) {
                    writeList.append(Array.getInt(value,i));
                }
            } else if (type == ElementType.TYPE_INTEGER_WRAPPER_ARRAY) {
                for (int i=0;i<len;i++) {
                    writeList.append(((Integer[])value)[i]);
                }
            }
        }
        valueList.append(writeList);
    }