[CSV-193] Fix incorrect method name 'withFirstRowAsHeader' in user
guide.</action>
This commit is contained in:
parent
fa437cb924
commit
5f14d16a66
|
@ -39,6 +39,7 @@
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.5" date="2016-MM-DD" description="Bug fix release">
|
<release version="1.5" date="2016-MM-DD" description="Bug fix release">
|
||||||
|
<action issue="CSV-193" type="fix" dev="ggregory" due-to="Matthias Wiehl">Fix incorrect method name 'withFirstRowAsHeader' in user guide.</action>
|
||||||
<action issue="CSV-171" type="fix" dev="ggregory" due-to="Gary Gregory, Michael Graessle, Adrian Bridgett">Negative numeric values in the first column are always quoted in minimal mode.</action>
|
<action issue="CSV-171" type="fix" dev="ggregory" due-to="Gary Gregory, Michael Graessle, Adrian Bridgett">Negative numeric values in the first column are always quoted in minimal mode.</action>
|
||||||
<action issue="CSV-187" type="update" dev="ggregory" due-to="Gary Gregory">Update platform requirement from Java 6 to 7.</action>
|
<action issue="CSV-187" type="update" dev="ggregory" due-to="Gary Gregory">Update platform requirement from Java 6 to 7.</action>
|
||||||
<action issue="CSV-189" type="add" dev="ggregory" due-to="Peter Holzwarth, Gary Gregory">CSVParser: Add factory method accepting InputStream.</action>
|
<action issue="CSV-189" type="add" dev="ggregory" due-to="Peter Holzwarth, Gary Gregory">CSVParser: Add factory method accepting InputStream.</action>
|
||||||
|
|
|
@ -143,7 +143,7 @@ for (CSVRecord record : records) {
|
||||||
Some CSV files define header names in their first record. If configured, Apache Commons CSV can parse
|
Some CSV files define header names in their first record. If configured, Apache Commons CSV can parse
|
||||||
the header names from the first record:
|
the header names from the first record:
|
||||||
<source>Reader in = new FileReader("path/to/file.csv");
|
<source>Reader in = new FileReader("path/to/file.csv");
|
||||||
Iterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRowAsHeader().parse(in);
|
Iterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in);
|
||||||
for (CSVRecord record : records) {
|
for (CSVRecord record : records) {
|
||||||
String id = record.get("ID");
|
String id = record.get("ID");
|
||||||
String customerNo = record.get("CustomerNo");
|
String customerNo = record.get("CustomerNo");
|
||||||
|
|
Loading…
Reference in New Issue