/super-csv/src/main/java/org/supercsv/io/CsvResultSetWriter.java
super.incrementRowAndLineNo( ) ; while( resultSet.next( ) ) {
while ( resultSet.next ( ) ) { super.incrementRowAndLineNo ( ) ;
} super.writeRow(headers); } private void writeContents(ResultSet resultSet) throws SQLException, IOException { final int numberOfColumns = resultSet.getMetaData().getColumnCount(); final List<Object> objects = new LinkedList<Object>(); <extra_id_0> objects.clear(); for( int columnIndex = 1; columnIndex <= numberOfColumns; columnIndex++ ) { objects.add(resultSet.getObject(columnIndex)); } super.writeRow(objects); }