/** * 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); }
/** * 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); }