File csvFile = new File(DataCrow.moduleDir + "data", getTableName() + ".data");
File xmlFile = new File(DataCrow.moduleDir + "data", getTableName() + ".xml");
Collection<DcObject> items = null;
ItemImporterHelper reader = null;
if (csvFile.exists()) {
reader = new ItemImporterHelper("CSV", getIndex(), csvFile);
reader.setSetting(CsvImporter._SEPERATOR, "\t");
} else if (xmlFile.exists()) {
reader = new ItemImporterHelper("XML", getIndex(), xmlFile);
}
if (reader != null) {
reader.start();
items = reader.getItems();
reader.clear();
}
return items;
}