You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2011/12/11 09:16:32 UTC
svn commit: r1212976 -
/poi/trunk/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java
Author: nick
Date: Sun Dec 11 08:16:32 2011
New Revision: 1212976
URL: http://svn.apache.org/viewvc?rev=1212976&view=rev
Log:
Add a NPOIFS constructor to WorkbookFactory, to match the regular POIFS one
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java?rev=1212976&r1=1212975&r2=1212976&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java Sun Dec 11 08:16:32 2011
@@ -43,6 +43,12 @@ public class WorkbookFactory {
return new HSSFWorkbook(fs);
}
/**
+ * Creates an HSSFWorkbook from the given NPOIFSFileSystem
+ */
+ public static Workbook create(NPOIFSFileSystem fs) throws IOException {
+ return new HSSFWorkbook(fs.getRoot(), true);
+ }
+ /**
* Creates an XSSFWorkbook from the given OOXML Package
*/
public static Workbook create(OPCPackage pkg) throws IOException {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org