示例#1
0
 /**
  * Appends the values of the given row to the result
  *
  * @param row The row, not null
  * @param result The result to append to, not null
  */
 protected void appendRow(Row row, StringBuilder result) {
   for (Column column : row.getColumns()) {
     result.append(objectFormatter.format(column.getValue()));
     result.append(", ");
   }
   result.setLength(result.length() - 2);
 }
示例#2
0
 /**
  * Appends the column names of the given row to the result
  *
  * @param row The row, not null
  * @param result The result to append to, not null
  */
 protected void appendColumnNames(Row row, StringBuilder result) {
   for (Column column : row.getColumns()) {
     result.append(column.getName());
     result.append(", ");
   }
   result.setLength(result.length() - 2);
 }