Menu

#5 Implement a more substantive CSV feature

release 2.0
open
enhancement (4)
2013-12-18
2013-12-18
No

Start with this as a basis.

<dependency>
    <groupId>net.sf.supercsv</groupId>
    <artifactId>super-csv</artifactId>
    <version>2.1.0</version>
</dependency>

The resulting changes will most likely include refactoring the Variable...FileReaders / Processors in such a way that the reading of the bytes of files is not coupled with the processing of those bytes. That way various forms of input source (sysin, cached, file) can all be CSV or variable length.

It is likely that this is how the superCSV will be used.

Use CsvListReader

  • new CsvListReader("reader", CsvPreference);
  • List<String> columns = read();
    ** Use this to get at the columns for selecting and sorting
  • getUntokenizedRow().length()
    ** Use this to determine the location and length of the row for re-reading it later
  • close();

Discussion


Log in to post a comment.