Bug 47579

Summary: [doc] HSSFSheet not iterable
Product: POI Reporter: Andreas Goetz <cpuidle>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 3.5-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

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