commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Crum <>
Subject Re: [csv] should CSVRecord's values() method be public?
Date Sun, 15 Sep 2013 20:54:47 GMT
I needed access to that method too, so I made that method public in my 
local copy.

Adrian Crum
Sandglass Software

On 9/15/2013 12:05 PM, Michele Rossi wrote:
> hi,
> I am trying to use commons-csv for a simple CSV transformation tool and I
> have encountered a couple of issues that I would like to discuss.
> The CSVPrinter takes object arrays as input but the "values" method of
> CSVRecord is not public.
> In the code I am writing I check a condition to determine whether I should
> transform the CSVRecord or not.
> But the if that condition returns "false" I am forced to make an akward
> copy of the
> CSVRecord in an object array as
> - CSVRecord objects can not be fed to CSVPrinter
> - CSVRecord's values() method is not public
> If "values()" was public I could use the data read from one CSV to directly
> feed another CSV.
> Seems a reasonable use case.
> Also, shouldn't CSVRecord implement Map<String, String> ?
> The key could be the column header.
> It would make sense right?
> Or am I missing something?
> thanks,
> Michele

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message