code: public void writeTitle(String titleName, Object data) {
      Object[] attrs = (Object[]) data;
      try {
        DBFField fields[] = new DBFField[attrs.length];
        for (int i = 0; i < fields.length; i++) {
          fields[i] = new DBFField();
          fields[i].setName((String) attrs[i]);
          fields[i].setDataType(DBFField.FIELD_TYPE_C);
          // FIXME
          fields[i].setFieldLength(500);
        }
        writer.setFields(fields);
      } catch (DBFException e) {
        throw new RuntimeException(e.getMessage());
      }
    }
docs: {@inheritDoc}