@Override public synchronized void writeRow(List<?> row) throws IOException { checkRowWidth(row.size()); // Add the data to the row assert rowData.size() == fixedColumns; rowData.addAll(row); try { // write the row baseWriter.writeRow(rowData); } finally { // reset the row rowData.removeElements(fixedColumns, rowData.size()); } }
@Override public synchronized void writeRow(List<?> row) throws IOException { checkRowWidth(row.size()); // Add the data to the row assert rowData.size() == fixedColumns; rowData.addAll(row); try { // write the row baseWriter.writeRow(rowData); } finally { // reset the row rowData.removeElements(fixedColumns, rowData.size()); } }
@Override public synchronized void writeRow(List<?> row) throws IOException { checkRowWidth(row.size()); // Add the data to the row assert rowData.size() == fixedColumns; rowData.addAll(row); try { // write the row baseWriter.writeRow(rowData); } finally { // reset the row rowData.removeElements(fixedColumns, rowData.size()); } } }