You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/06/22 20:19:00 UTC

[jira] [Commented] (CSV-298) Support Header in second Row

    [ https://issues.apache.org/jira/browse/CSV-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17557678#comment-17557678 ] 

Michael Osipov commented on CSV-298:
------------------------------------

Personally, there is no need to support this. Use the a line-oriented Reader, read the first line yourself and then pass the reader to the parser. Done.

> Support Header in second Row 
> -----------------------------
>
>                 Key: CSV-298
>                 URL: https://issues.apache.org/jira/browse/CSV-298
>             Project: Commons CSV
>          Issue Type: Improvement
>          Components: Parser
>    Affects Versions: 1.9.0
>            Reporter: Stephen More
>            Priority: Minor
>
> I have to parse files where the first rows contains a timestamp and header row is in the second row.
> It would be great to code:
>  
> Iterable<CSVRecord> records = CSVFormat.RFC4180.withSecondRecordAsHeader().parse(in);



--
This message was sent by Atlassian Jira
(v8.20.7#820007)