Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-179

Add shortcut method for using first record as header to CSVFormat

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: Parser
    • Labels:
      None

      Description

      As discussed on the dev ML:

      Instead of:

      CSVFormat.RFC4180
         .withHeader() // use first row as header
         .withSkipHeaderRecord();
      

      It would be useful to have a method that does this in one call: withFirstRecordAsHeader()

        Attachments

          Activity

            People

            • Assignee:
              britter Benedikt Ritter
              Reporter:
              britter Benedikt Ritter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: