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 2014/08/14 22:08:21 UTC

[jira] [Closed] (CSV-92) Need a way to extract parsed headers, e.g. for use in formatting output

     [ https://issues.apache.org/jira/browse/CSV-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benedikt Ritter closed CSV-92.
------------------------------


> Need a way to extract parsed headers, e.g. for use in formatting output
> -----------------------------------------------------------------------
>
>                 Key: CSV-92
>                 URL: https://issues.apache.org/jira/browse/CSV-92
>             Project: Commons CSV
>          Issue Type: New Feature
>            Reporter: Sebb
>             Fix For: 1.0
>
>
> Parsed header names are currently not accessible except as field key names, but these have to be known in advance.
> It would be useful to be able to have access to the header names:
> * to use in printing a header for a new CSV file. E.g. to read a CSV file and produce a new one with some changes made.
> * to write generic CSV applications
> The headers could be made available as a String array (in column number order) from the CSVParser class.
> The simplest would be to store the parsed (or provided) headers and return a clone of the array.
> If headers were not provided or requested, the method should probably return null rather than an empty array - to be decided.



--
This message was sent by Atlassian JIRA
(v6.2#6252)