You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Babak Vahdat (JIRA)" <ji...@apache.org> on 2012/04/27 13:17:49 UTC

[jira] [Commented] (CAMEL-5166) camel-csv - Add option to skip first line when unmarshalling

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

Babak Vahdat commented on CAMEL-5166:
-------------------------------------

According to the RFC-4180 there maybe *one* optional header line:

http://tools.ietf.org/html/rfc4180

{code}
There maybe an optional header line appearing as the first line
of the file with the same format as normal record lines.  This
header will contain names corresponding to the fields in the file
and should contain the same number of fields as the records in
the rest of the file (the presence or absence of the header line
should be indicated via the optional "header" parameter of this
MIME type).  For example:

field_name,field_name,field_name CRLF
aaa,bbb,ccc CRLF
zzz,yyy,xxx CRLF
{code}

So that IMHO providing "number of lines" semantics would be an unnecessary overkill.
                
> camel-csv - Add option to skip first line when unmarshalling
> ------------------------------------------------------------
>
>                 Key: CAMEL-5166
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5166
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Claus Ibsen
>            Assignee: Babak Vahdat
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If the first line is CSV headers, then you want to skip this line. Currently there seems to be no easy way of configuring this on <csv> data format.
> Likewise, we should check camel-flatpack for similar option. And camel-bindy as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira