You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ye...@apache.org on 2012/02/07 09:17:22 UTC
svn commit: r1241373 -
/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java
Author: yegor
Date: Tue Feb 7 08:17:21 2012
New Revision: 1241373
URL: http://svn.apache.org/viewvc?rev=1241373&view=rev
Log:
improved javadoc on SXSSFWorkbook(XSSFWorkbook wb)
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java?rev=1241373&r1=1241372&r2=1241373&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java Tue Feb 7 08:17:21 2012
@@ -77,7 +77,42 @@ public class SXSSFWorkbook implements Wo
public SXSSFWorkbook(){
this(null /*workbook*/);
}
-
+
+ /**
+ * Construct a workbook from a template.
+ * <p>
+ * There are three use-cases to use SXSSFWorkbook(XSSFWorkbook) :
+ * <ol>
+ * <li>
+ * Append new sheets to existing workbooks. You can open existing
+ * workbook from a file or create on the fly with XSSF.
+ * </li>
+ * <li>
+ * Append rows to existing sheets. The row number MUST be greater
+ * than max(rownum) in the template sheet.
+ * </li>
+ * <li>
+ * Use existing workbook as a template and re-use global objects such
+ * as cell styles, formats, images, etc.
+ * </li>
+ * </ol>
+ * All three use cases can work in a combination.
+ * </p>
+ * What is not supported:
+ * <ul>
+ * <li>
+ * Access initial cells and rows in the template. After constructing
+ * SXSSFWorkbook(XSSFWorkbook) all internal windows are empty and
+ * SXSSFSheet@getRow and SXSSFRow#getCell return null.
+ * </li>
+ * <li>
+ * Override existing cells and rows. The API silently allows that but
+ * the output file is invalid and Excel cannot read it.
+ * </li>
+ * </ul>
+ *
+ * @param workbook the template workbook
+ */
public SXSSFWorkbook(XSSFWorkbook workbook){
this(workbook, DEFAULT_WINDOW_SIZE);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org