#86 Please make CSVReader members protected instead of private

open
nobody
None
5
2011-11-25
2011-11-25
Matt Sgarlata
No

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.

Discussion