https://bz.apache.org/bugzilla/show_bug.cgi?id=58245
Bug ID: 58245
Summary: [PATCH] Workbook interface should extend
Iterable<Sheet>
Product: POI
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: SS Common
Assignee: [email protected]
Reporter: [email protected]
Created attachment 33001
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33001&action=edit
patch to make Workbook interface implement Iterable<Sheet>
In one of my own projects, I would like to write code without specifying any
one particular implementation (HSSFWorkbook, XSSFWorkbook).
> Workbook wb = WorkbookFactory.create(file);
> for(Sheet worksheet : workbook) {
> // do something with worksheet
> }
Both HSSFWorkbook and XSSFWorkbook implement an iterator over the sheets, but
the Workbook interface is missing this, thus I can't write the above code
without defining the workbook as HSSF or XSSF.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]