This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git


The following commit(s) were added to refs/heads/master by this push:
     new cf1e392f Javadoc
     new 2abebaa7 Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/commons-csv.git
cf1e392f is described below

commit cf1e392f8585dbf2428f99445982d820e91a4687
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Apr 5 18:08:46 2024 -0400

    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;
  * <li>{@link #EXCEL}</li>
  * <li>{@link #INFORMIX_UNLOAD}</li>
  * <li>{@link #INFORMIX_UNLOAD_CSV}</li>
+ * <li>{@link #MONGODB_CSV}</li>
+ * <li>{@link #MONGODB_TSV}</li>
  * <li>{@link #MYSQL}</li>
- * <li>{@link #RFC4180}</li>
  * <li>{@link #ORACLE}</li>
  * <li>{@link #POSTGRESQL_CSV}</li>
  * <li>{@link #POSTGRESQL_TEXT}</li>
+ * <li>{@link #RFC4180}</li>
  * <li>{@link #TDF}</li>
  * </ul>
  *
@@ -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.
      * </p>
-     *
+     * <p>
+     * As of 2024-04-05, the MongoDB documentation for {@code mongoimport} 
states:
+     * </p>
+     * <blockquote>The csv parser accepts that data that complies with RFC <a 
href="https://tools.ietf.org/html/4180";>RFC-4180</a>.
+     * 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.
+     * </blockquote>
      * <p>
      * The {@link Builder} settings are:
      * </p>

Reply via email to