commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [CSV] Headers and the first record
Date Tue, 30 Jul 2013 21:15:36 GMT
I haven't checked the current code, but the intended behavior was:

- no args: the first record defines the header and is not returned when
iterating

- args: the header is defined independently of the data, all the records
are returned when iterating

Emmanuel Bourg


Le 30/07/2013 22:23, Gary Gregory a écrit :
> Actually, if you use withHeader(), no args, you _cannot_ get back the first
> record, so that makes skipHeader=false not possible without making the
> parser track the first record separately.
> 
> In the interest of simplicity, I am going to make it simple: if you use
> withHeader of any kind, then the first record is read.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message