Bug 47579 - [doc] HSSFSheet not iterable
Summary: [doc] HSSFSheet not iterable
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.5-dev
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 03:26 UTC by Andreas Goetz
Modified: 2009-07-25 04:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Goetz 2009-07-25 03:26:54 UTC
http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFSheet.html says HSSFSheet implements Iterable which it doesn't- neither in 3.2 final nor 3.5b5.

Would there be any chance to get the Iterable implementation into 3.5 or (less preferred) fix the docs?
Comment 1 Yegor Kozlov 2009-07-25 04:00:31 UTC
HSSFSheet *IS* iterable in terms of common SS interfaces:

The following code compiles and works for me:

        Workbook wb = new HSSFWorkbook(new FileInputStream("test.xls"));
        Sheet sh = wb.createSheet();
        for(Row row : sh){
            for(Cell cell : row){
                
            }    
        }

Yegor