* @throws BiffException
* @throws Exception
*/
public void importData(String dataFilePath)throws FileNotFoundException, IOException, BiffException, Exception{
dataFilePath = dataFilePath.toLowerCase();
FileReader fileReader=null;
if(dataFilePath.endsWith("csv")){
BufferedReader in=null;
in = new BufferedReader(new java.io.FileReader(dataFilePath));
fileReader = new CSVReader(in);
}
if(dataFilePath.endsWith("xls")){
fileReader = new XLSReader(new File(dataFilePath));
}
if(dataFilePath.endsWith("wss")){
fileReader = new WSSReader(new File(dataFilePath));
}
if (fileReader!=null)
data = fileReader.readData();
else throw new Exception("Usupported File Extension");
dataImported = true;
}