Loads a workbook from the given filename in the test data dir.paramfilename the filename.returnthe loaded workbook.throwsIOException if an error occurs loading the workbook. File file = new File(dataDir, filename); InputStream stream = new BufferedInputStream(new FileInputStream(file)); try { return new HSSFWorkbook(stream); } finally { stream.close(); }
File file = new File(dataDir, filename); InputStream stream = new BufferedInputStream(new FileInputStream(file)); try { return new HSSFWorkbook(stream); } finally { stream.close(); }