From 2b5f84ede12cfadd7946ffb07a56709b8322a02f Mon Sep 17 00:00:00 2001
From: Benedikt Ritter
Date: Sat, 14 Sep 2013 11:13:22 +0000
Subject: [PATCH] Document how to create CSVParsers via CSVFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1523213 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/commons/csv/CSVParser.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java
index df4aa6af..803421ab 100644
--- a/src/main/java/org/apache/commons/csv/CSVParser.java
+++ b/src/main/java/org/apache/commons/csv/CSVParser.java
@@ -54,7 +54,14 @@ import java.util.NoSuchElementException;
*
*
* Alternatively parsers can also be created by passing a {@link Reader} directly to the sole constructor.
+ *
+ * For those who like fluent APIs, parsers can be created using {@link CSVFormat#parse(java.io.Reader)} as a shortcut:
*
+ *
+ * for(CSVRecord record : CSVFormat.EXCEL.parse(in)) {
+ * ...
+ * }
+ *
*
* Parsing record wise
*