You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/csv/CSVFormat.java
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -70,11 +70,13 @@
70
70
* <li>{@link #EXCEL}</li>
71
71
* <li>{@link #INFORMIX_UNLOAD}</li>
72
72
* <li>{@link #INFORMIX_UNLOAD_CSV}</li>
73
+
* <li>{@link #MONGODB_CSV}</li>
74
+
* <li>{@link #MONGODB_TSV}</li>
73
75
* <li>{@link #MYSQL}</li>
74
-
* <li>{@link #RFC4180}</li>
75
76
* <li>{@link #ORACLE}</li>
76
77
* <li>{@link #POSTGRESQL_CSV}</li>
77
78
* <li>{@link #POSTGRESQL_TEXT}</li>
79
+
* <li>{@link #RFC4180}</li>
78
80
* <li>{@link #TDF}</li>
79
81
* </ul>
80
82
*
@@ -1059,7 +1061,13 @@ public CSVFormat getFormat() {
1059
1061
* 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
1060
1062
* names is expected.
1061
1063
* </p>
1062
-
*
1064
+
* <p>
1065
+
* As of 2024-04-05, the MongoDB documentation for {@code mongoimport} states:
1066
+
* </p>
1067
+
* <blockquote>The csv parser accepts that data that complies with RFC <a href="https://tools.ietf.org/html/4180">RFC-4180</a>.
1068
+
* 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
1069
+
* internal double-quote marks by prepending another double-quote.
0 commit comments