Menu

#55 Make it clear in the doc if the same cell processors can be used both for writing and reading

Outstanding
closed
nobody
None
1
2015-01-23
2014-11-08
No

Hi,

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

    Anonymous - 2014-11-08

    Also, make it clear a cell processor is often not needed when writing. It is more often needed when reading.

     
  • James Bassett

    James Bassett - 2014-11-09

    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).

    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

     
  • Anonymous

    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.

     
  • Kasper B. Graversen

    • status: open --> closed
     

Log in to post a comment.