commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CSV-108) Header is not detected
Date Mon, 17 Mar 2014 12:59:42 GMT

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

Emmanuel Bourg commented on CSV-108:
------------------------------------

Hi Ralf, headers are not detected automagically, but that would be nice if it could :) You
have to hint the presence of a header when you define the format (using {{format.withHeader()}}).

> Header is not detected
> ----------------------
>
>                 Key: CSV-108
>                 URL: https://issues.apache.org/jira/browse/CSV-108
>             Project: Commons CSV
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.0
>            Reporter: Ralf Alt
>
> The heaer of the csv file is not detected.
> Name; Firstname
> Mustermann; Thomas
> Musterfrau; Petra
> Reader in = new FileReader("c:/test.csv");
> CSVFormat format = CSVFormat.DEFAULT;      
> format = format.newFormat( ';' );   



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

Mime
View raw message