String tableName = FilenameUtils.getBaseName(name);
return new SingleTableReader(new CsvReader(file, '\t'), tableName);
}
else if (name.endsWith(".xls") || name.endsWith(".xlsx"))
{
return new ExcelReader(file);
}
else if (name.endsWith(".zip"))
{
return new ZipTableReader(new ZipFile(file));
}