src/main/java/org/s2n/ddt/util/ExcelAccess.java
public void openWorkBook(File workbookPath) {
		closeIfOpen();
		InputStream inputStream = null;
		logger.info("Opening workbook");
		try {
			inputStream = new BufferedInputStream(new FileInputStream(
					workbookPath));
			wb = WorkbookFactory.create(inputStream);

		} catch (Exception e) {
			logger.warn("openWorkBook opening " + workbookPath
					+ ", " + e, e);
		} finally {
			if (inputStream != null) {
				try {
					inputStream.close();

				} catch (Exception e) {
					logger.warn("openWorkBook Closing"
							+ workbookPath + ", " + e, e);

				}
			}
		}
	}
/**
	 * This method is to open a workbook excel.
	 * 
	 * @param workbookPath
	 *            the workbook path
	 * @return the workbook
	 */
This method is to open a workbook excel.

@param workbookPath
the workbook path
@return the workbook
This method is to open a workbook excel . @param workbookPath the workbook path @return the workbook
public void openWorkBook(File workbookPath) {
		closeIfOpen();
		InputStream inputStream = null;
		logger.info("Opening workbook");
		try {
			inputStream = new BufferedInputStream(new FileInputStream(
					workbookPath));
			wb = WorkbookFactory.create(inputStream);
		} catch (Exception e) {
			logger.warn("openWorkBook opening " + workbookPath
					+ ", " + e, e);
		} finally {
			if (inputStream != null) {
				try {
					inputStream.close();
				} catch (Exception e) {
					logger.warn("openWorkBook Closing"
							+ workbookPath + ", " + e, e);
				}
			}
		}
	}
public void openWorkBook ( File workbookPath ) { closeIfOpen ( ) ; InputStream inputStream = null ; logger . info ( "Opening workbook" ) ; try { inputStream = new BufferedInputStream ( new FileInputStream ( workbookPath ) ) ; wb = WorkbookFactory . create ( inputStream ) ; } catch ( Exception e ) { logger . warn ( "openWorkBook opening " + workbookPath + ", " + e , e ) ; } finally { if ( inputStream != null ) { try { inputStream . close ( ) ; } catch ( Exception e ) { logger . warn ( "openWorkBook Closing" + workbookPath + ", " + e , e ) ; } } } }
This method is to open a workbook excel.
This method is to open a workbook excel .