Summary: | Different between SXSSFWorkbook api and Example given. | ||
---|---|---|---|
Product: | POI | Reporter: | anant.jagania |
Component: | SXSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | anant.jagania |
Priority: | P2 | ||
Version: | 3.8-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
anant.jagania
2011-06-13 07:56:51 UTC
I'd suggest you try a nightly build or your own checkout from svn - SXSSF is very new The constructor SXSSFWorkbook(int windowSize) and flushRows() are in trunk only, they are not included in 3.8-beta3. Please post a sample code that results in the "java.io.IOException: Stream closed" exception. The SXSSF API is new and some operations may not be well tested. Nightly builds can be downloaded from here: http://encore.torchbox.com/poi-cvs-build/ Yegor Yegor, Thanks for the info. The "java.io.IOException: Stream closed" exception was coming due to writing on the same file with different data without giving the inputstream of the original file to workbook object. So I have solved it by writing into a new file every time. I will try the code with flushRows and int argument constructor by checking out the code from SVN. However, I suggest a document change as it is misleading to API and sample example. As far as I see API Doc, Code and Examples on the homepage match nowadays. |