src/org/tiefaces/components/websheet/service/WebSheetLoader.java
public final int loadWorkbook(final InputStream fis, final Map<String, Object> dataContext) {

		try {
			Workbook wb = WorkbookFactory.create(fis);
			int ireturn = loadWorkbook(wb, dataContext);
			fis.close();
			return ireturn;
		} catch (Exception e) {
			LOG.log(Level.SEVERE, "Web Form loadWorkbook Error Exception = " + e.getLocalizedMessage(), e);
			return -1;
		}

	}
public final int loadWorkbook(final InputStream fis, final Map<String, Object> dataContext) {

		try {
			Workbook wb = WorkbookFactory.create(fis);
			int ireturn = loadWorkbook(wb, dataContext);
			fis.close();
			return ireturn;
		} catch (Exception e) {
			LOG.log(Level.SEVERE, "Web Form loadWorkbook Error Exception = " + e.getLocalizedMessage(), e);
			return -1;
		}

	}
public final int loadWorkbook ( final InputStream fis , final Map < String , Object > dataContext ) { try { Workbook wb = WorkbookFactory . create ( fis ) ; int ireturn = loadWorkbook ( wb , dataContext ) ; fis . close ( ) ; return ireturn ; } catch ( Exception e ) { LOG . log ( Level . SEVERE , "Web Form loadWorkbook Error Exception = " + e . getLocalizedMessage ( ) , e ) ; return - 1 ; } }
Load workbook.

@param fis
the fis
@param dataContext
the data context
@return the int
Load workbook .