Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private void writeHeaderRow() {
for (int i = 0; i < headerColumn.size(); i++) {
csvRowValues[i] = stringValue(headerColumn.get(i));
}
csvWriter.writeNext(csvRowValues);
csvWriter.writeNext(csvRowValues,exportConfig.isApplyQuotesToAll());
}
}

Expand All @@ -81,7 +81,7 @@ private void writeRow(T row) {
for (int i = 0; i < mapping.columnsCount(); i++) {
csvRowValues[i] = stringValue(mapping.cellValue(i, row));
}
csvWriter.writeNext(csvRowValues);
csvWriter.writeNext(csvRowValues, exportConfig.isApplyQuotesToAll());
csvWriter.flush();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ public class ExportCsvConfig {
@Builder.Default private final char escapeChar = ICSVParser.DEFAULT_ESCAPE_CHARACTER;
/** The line feed terminator to use */
@Builder.Default private final String lineEnd = CSVWriter.DEFAULT_LINE_END;
/** The boolean to use for applying or not optional wrapping quotes */
@Builder.Default private final boolean applyQuotesToAll = true;


}