[
https://issues.apache.org/jira/browse/CSV-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17230518#comment-17230518
]
Stephan Bublava commented on CSV-266:
-------------------------------------
I'm sorry, I completely missed that CSVRecord implements Iterable.
> CSVRecord.toList() should be public
> -----------------------------------
>
> Key: CSV-266
> URL: https://issues.apache.org/jira/browse/CSV-266
> Project: Commons CSV
> Issue Type: Improvement
> Components: Printer
> Affects Versions: 1.8
> Reporter: Stephan Bublava
> Priority: Minor
>
> I need to write CSVRecord instances to a file.
> CSVPrinter supports:
> * void printRecord(final Object... values)
> * void printRecords(final Iterable<?> values)
> but CSVRecords only offers:
> * Iterator<String> iterator()
> This is cumbersome, because I have to perform a (superfluous) Iterator ->
> List conversion to make this work.
> Please make CSVRecord.toList() public or add
> CSVPrinter.printRecord(CSVRecord).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)