if (headers) {
recordCount--;
}
setRecordCount(recordCount);
} catch (final IOException ex) {
throw new QuantError(ex);
} finally {
reportDone(true);
if (reader != null) {
try {
reader.close();
} catch (final IOException e) {
throw new QuantError(e);
}
}
setInputFilename(input);
setExpectInputHeaders(headers);
setInputFormat(format);
}
// now analyze columns
ReadCSV csv = null;
try {
csv = new ReadCSV(input.toString(), headers, format);
if (!csv.next()) {
throw new QuantError("File is empty");
}
for (int i = 0; i < csv.getColumnCount(); i++) {
String name;