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
Date Thu, 15 Mar 2012 08:01:28 GMT
Le 15/03/2012 08:55, Benedikt Ritter a écrit :

> I'm not sure if I understand the approach completely. The Header can
> not be accessed as a CSVRecord, right? CSVRecords know the header
> values through get(string). What happens if the format does not
> support a header? UnsupportedOperationException?

Yes, or IllegalStateException.


> If I got you right, we could use getHeaders() to know, which header
> values are available.

The actual header would be returned by parser.getHeader().


> Maybe it would be useful to have the record implement iterable as well.

Or have a method return the array of values if you want to iterate over it.

Emmanuel Bourg


Mime
View raw message