Commit 0f1a6383 authored by R.W.Majeed's avatar R.W.Majeed

table name to file name available public

parent 04769f88
......@@ -61,8 +61,8 @@ public class CSVWriter implements ExportWriter{
return fieldSeparator;
}
private String fileWithExtension(String name){
return name+getFileExtension();
public String fileNameForTable(String tableName){
return tableName+getFileExtension();
}
/**
......@@ -97,17 +97,17 @@ public class CSVWriter implements ExportWriter{
}
@Override
public TableWriter openPatientTable() throws IOException {
return new Table(this, fileWithExtension(patientTableName));
return new Table(this, fileNameForTable(patientTableName));
}
@Override
public TableWriter openVisitTable() throws IOException {
return new Table(this, fileWithExtension(visitTableName));
return new Table(this, fileNameForTable(visitTableName));
}
@Override
public TableWriter openEAVTable(String id) throws IOException {
return new Table(this, fileWithExtension(id));
return new Table(this, fileNameForTable(id));
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment