Bug 50191

Summary: Where is org.apache.poi.ss.usermodel.WorkbookFactory?
Product: POI Reporter: Vasili <gavr145>
Component: XSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 3.7-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Vasili 2010-11-01 12:50:35 UTC
Hi,

WorkbookFactory is broken in 3.7, although apidocs is still having the class in org.apache.poi.ss.usermodel (so api was not generated from the code!) 

Removing of the class breaks backward-compatibility in respect to the format-independent way of reading either HSSF or XSSF (when it is not known - which format user will provide in xls: 2003 or 2007+).

Workbook workbook = WorkbookFactory.create(inputStream);
//treat workbook in independent way

thanks
Comment 1 David Fisher 2010-11-01 13:04:44 UTC
It is in poi-ooxml:

./ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java

Please check your classpaths

Regards,
Dave
Comment 2 Vasili 2010-11-01 13:50:46 UTC
Added.
Great, thanks.