You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2016/05/03 20:44:12 UTC
[jira] [Resolved] (CSV-179) Add shortcut method for using first
record as header to CSVFormat
[ https://issues.apache.org/jira/browse/CSV-179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benedikt Ritter resolved CSV-179.
---------------------------------
Resolution: Fixed
{code}
$ svn ci -m "CSV-179: Add shortcut method for using first record as header to CSVFormat"
Sending src/changes/changes.xml
Sending src/main/java/org/apache/commons/csv/CSVFormat.java
Sending src/test/java/org/apache/commons/csv/CSVFormatTest.java
Transmitting file data ...
Committed revision 1742175.
{code}
> Add shortcut method for using first record as header to CSVFormat
> -----------------------------------------------------------------
>
> Key: CSV-179
> URL: https://issues.apache.org/jira/browse/CSV-179
> Project: Commons CSV
> Issue Type: Improvement
> Components: Parser
> Reporter: Benedikt Ritter
> Assignee: Benedikt Ritter
> Fix For: 1.3
>
>
> As discussed on the dev ML:
> Instead of:
> {code:java}
> CSVFormat.RFC4180
> .withHeader() // use first row as header
> .withSkipHeaderRecord();
> {code}
> It would be useful to have a method that does this in one call: withFirstRecordAsHeader()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)