poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: Busy Developers' BAD Guide to HSSF and XSSF
Date Wed, 13 Jan 2010 13:49:07 GMT
On Wed, 13 Jan 2010, Chris wrote:
> 1.2.ALL
> Workbook wb = new HSSFWorkbook();
> Oops...
> HSSFWorkbook wb = is better ...

This is deliberate. If you code to the ss.usermodel interfaces, then your 
code will work with both xssf and hssf

> 1.2.8. Iterate over rows and cells HSSFSheet sheet = wb.getSheetAt(0);

Ignore this, I've now removed it from the docs as it isn't needed. See the 
ss.usermodel example just above it, or the ss.usermodel foreach below it - 
you don't need to be casting to the concrete classes for this.


To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org

View raw message