File f = new File(filePath);
InputStream inputStream = new FileInputStream(f);
Workbook xssfWorkbook = null;
//POIFSFileSystem poifsFileSystem = new POIFSFileSystem(inputStream);
//inputStream.close();
org.apache.poi.hssf.record.crypto.Biff8EncryptionKey
.setCurrentUserPassword("308");
xssfWorkbook = WorkbookFactory.create(inputStream);
inputStream.close();
int sheets = xssfWorkbook.getNumberOfSheets();