extracted load and save service and generalize file writer

This commit is contained in:
Andreas Billmann
2016-01-12 21:52:08 +01:00
parent 72a8674cfc
commit 469895b27e
8 changed files with 294 additions and 142 deletions

View File

@@ -51,7 +51,7 @@ public class CSVFileReader extends CSVConfigurable implements FileReader {
ICsvMapReader mapReader = null;
try {
mapReader = new CsvMapReader(new java.io.FileReader(file.getAbsoluteFile()), csvPreference);
model = new CSVModel(file.getAbsolutePath());
model = new CSVModel();
// the header columns are used as the keys to the Map
String[] header = mapReader.getHeader(true);