It would help to understand the tool if we knew one little thing: can I reuse the same cell processors both for writing my csv file and then for reading it ?
Kind Regards,
Stephane Eybert
Discussion
Anonymous
-
2014-11-08
Also, make it clear a cell processor is often not needed when writing. It is more often needed when reading.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To answer your first question - if you're asking can you reuse the same instances then yes. Just be careful if the processor is stateful (i.e. Collector and Unique).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2014-11-09
I saw some were for reading and others more for writing. Although I did not know if it was mandatory or more up to the user. I also didn't know when to use which. All in all, I was missing an introductory paragraph hinting at the possible use cases.
In the end I assumed I did not need any processor for my writing needs and so skipped using them. I only used them when reading. And it then worked fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, make it clear a cell processor is often not needed when writing. It is more often needed when reading.
To answer your first question - if you're asking can you reuse the same instances then yes. Just be careful if the processor is stateful (i.e.
Collector
andUnique
).As to your second question, I think the documentation is pretty clear on which processors are for reading/writing or both: http://supercsv.sourceforge.net/cell_processors.html#Available_cell_processors
I saw some were for reading and others more for writing. Although I did not know if it was mandatory or more up to the user. I also didn't know when to use which. All in all, I was missing an introductory paragraph hinting at the possible use cases.
In the end I assumed I did not need any processor for my writing needs and so skipped using them. I only used them when reading. And it then worked fine.