Bug 50191 - Where is org.apache.poi.ss.usermodel.WorkbookFactory?
Summary: Where is org.apache.poi.ss.usermodel.WorkbookFactory?
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.7-FINAL
Hardware: PC Windows XP
: P2 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-01 12:50 UTC by Vasili
Modified: 2010-11-01 13:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.