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 18:30:13 UTC

[jira] [Created] (CSV-179) Add shortcut method for using first record as header to CSVFormat

Benedikt Ritter created CSV-179:
-----------------------------------

             Summary: 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)