https://issues.apache.org/bugzilla/show_bug.cgi?id=51362
Bug #: 51362
Summary: Different between SXSSFWorkbook api and Example given.
Product: POI
Version: 3.8-dev
Platform: PC
Status: NEW
Severity: major
Priority: P2
Component: SXSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I was looking at the example of SXSSFWorkbook given at
http://poi.apache.org/spreadsheet/how-to.html#sxssf
And found relevant to what I need. Unfortunately it doesn't match up with the
API given below.
http://poi.apache.org/apidocs/org/apache/poi/xssf/streaming/SXSSFWorkbook.html
In the example there is a constructor with Integer argument but in API its not.
First of all in the jar file of 3.7 there is no such package called
org.apache.poi.xssf.streaming. Looking at 3.8 jar file we have the package but
example given and the API are not same at all. E.g. flushRow method is not
available in SXSSFSheet but its given in the example.
Are these features would be available in final version of 3.8?
Also, using 3.8 b3 I got the following exceptions. This happens when I have
multiple sheets in the workbook and I am writing file to disk.
java.io.IOException: Stream closed
at sun.nio.cs.StreamEncoder.ensureOpen(StreamEncoder.java:44)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:117)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:134)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:220)
at java.io.Writer.write(Writer.java:157)
at
org.apache.poi.xssf.streaming.SXSSFSheet$SheetDataWriter.getWorksheetXMLInputStream(SXSSFSheet.java:1267)
at
org.apache.poi.xssf.streaming.SXSSFSheet.getWorksheetXMLInputStream(SXSSFSheet.java:62)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.injectData(SXSSFWorkbook.java:108)
at
org.apache.poi.xssf.streaming.SXSSFWorkbook.write(SXSSFWorkbook.java:496)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]