question: public void writeAll ( java . sql . ResultSet rs , boolean includeColumnNames , boolean trim ) throws SQLException , IOException { if ( includeColumnNames ) { writeColumnNames ( rs ) ; } while ( rs . next ( ) ) { writeNext ( resultService . getColumnValues ( rs , trim ) ) ; } }
target:  Writes the entire ResultSet to a CSV file. The caller is responsible for closing the ResultSet.