Hi,
Currently i am using the poi 2.5 to parse the 2003 excel files. Now I want to
support to office 2007 files (.xlsx). SO I migrated to
poi-3.5-beta5-20090219.jar. In the existing code, I pass the file as InputStream
to parse as follows:
public HashMap processWorkBook(InputStream is) {
POIFSFileSystem fs = new POIFSFileSystem(is);
HSSFWorkbook wb = new HSSFWorkbook(fs);
for (int i=0;i<wb.getNumberOfSheets();i++){
// parsing code here
}
}
I want to write common api to parse .xls and .xlsx files(as inputstream). How to
handle file as inputstream using the XSSFWorkbook class?
How to identify the excel file version from the inputstream?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]