From cf1e392f8585dbf2428f99445982d820e91a4687 Mon Sep 17 00:00:00 2001
From: Gary Gregory
Date: Fri, 5 Apr 2024 18:08:46 -0400
Subject: [PATCH] Javadoc
---
src/main/java/org/apache/commons/csv/CSVFormat.java | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java
index 754d2229..c2356c54 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -70,11 +70,13 @@ import org.apache.commons.io.output.AppendableOutputStream;
* {@link #EXCEL}
* {@link #INFORMIX_UNLOAD}
* {@link #INFORMIX_UNLOAD_CSV}
+ * {@link #MONGODB_CSV}
+ * {@link #MONGODB_TSV}
* {@link #MYSQL}
- * {@link #RFC4180}
* {@link #ORACLE}
* {@link #POSTGRESQL_CSV}
* {@link #POSTGRESQL_TEXT}
+ * {@link #RFC4180}
* {@link #TDF}
*
*
@@ -1059,7 +1061,13 @@ public final class CSVFormat implements Serializable {
* This is a comma-delimited format. Values are double quoted only if needed and special characters are escaped with {@code '"'}. A header line with field
* names is expected.
*
- *
+ *
+ * As of 2024-04-05, the MongoDB documentation for {@code mongoimport} states:
+ *
+ * The csv parser accepts that data that complies with RFC RFC-4180.
+ * As a result, backslashes are not a valid escape character. If you use double-quotes to enclose fields in the CSV data, you must escape
+ * internal double-quote marks by prepending another double-quote.
+ *
*
* The {@link Builder} settings are:
*