#86 Please make CSVReader members protected instead of private

v1.0 (example)

Currently the only way to way to modify the non-public functionality in the CSVReader is to copy/paste the entire class to another file.

For the program I'm working on, I need to examine only the first and last line of a CSV file. It takes way too long because every line in the CSV is fully parsed when all I need to do is skip down to the bottom of the file. I don't know how many lines the file is, so I can't use the skipLines functionality. All I need is to use the getNextLine method, but unfortunately it is marked private.

Please switch all private variables and methods to protected so that it can be sublcassed without code duplication.


  • Scott Conway

    Scott Conway - 2016-01-18
    • status: open --> closed-fixed
    • assigned_to: Scott Conway
    • Group: --> v1.0 (example)
  • Scott Conway

    Scott Conway - 2016-01-18

    Done - I had mixed feelings on this one because I did not want to expose too much because I don't want to dictacte a solution. What I did though which I think is a fair compromise is that I made all methods called by public methods protected.

    I have done that with the CSVWriter, Reader and Parser and will expand on that in later releases.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks