[CSV-99] Revert Builder implementation in CSVFormat. Update Javadoc.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509216 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-08-01 13:05:25 +00:00
parent fcc0d15c7b
commit f69ddb394a

View File

@ -40,12 +40,12 @@ import java.util.Set;
* </p>
* You can extend a format through a builder. For example, to extend the Excel format with columns header, you write:
* </p>
* <pre>CSVFormat.EXCEL.toBuilder().withHeader(&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col3&quot;);</pre>
* <pre>CSVFormat.EXCEL.withHeader(&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col3&quot;);</pre>
* <p>
* You can parse through a format. For example, to parse an Excel file with columns header, you write:
* </p>
* <pre>Reader in = ...;
*CSVFormat.EXCEL.toBuilder().withHeader(&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col3&quot;).parse(in);</pre>
*CSVFormat.EXCEL.withHeader(&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col3&quot;).parse(in);</pre>
* <p>
*
* @version $Id$