https://bz.apache.org/bugzilla/show_bug.cgi?id=65609
Bug ID: 65609
Summary: Flush not working
Product: POI
Version: 5.0.0-FINAL
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
[poi-ooxml.jar]
Problem:
- The library gets blocked while writing a large number of rows on an Excel
sheet.
Probable reason:
- The method "flushRows" of the class "SXSSFSheet" does not flush anything in
the temporary file (File "_fd" of class SheetDataWriter) before the method
"close" is called. It just writes the last rows in the Writer ("_out" of class
SheetDataWriter).
Solution Suggestion:
public class SXSSFSheet implements Sheet
{
...
public void flushRows() throws IOException
{
this.flushRows(0);
this._writer.flush();
}
...
}
public class SheetDataWriter implements Closeable {
...
public void flush() throws IOException {
this._out.flush();
}
...
}
--
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]