Menu

#4 Automatically create header for CSV

open
nobody
None
5
2012-02-07
2012-02-07
Rafael
No

Would it be possible to add the ability to automatically create a CSV header based off csv fields. The annotation could be ammended to add a header name like so @CsvField(pos = 1, headerName = "Name"). Then you could create a new method on the CSV serializer to print the header - serializer.writeHeader();

The current header implementation means the developer must match the csv field position with the header, the addition to the csv field annotation should prevent that.

btw nice library.

Discussion


Log in to post a comment.