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: dev@poi.apache.org
          Reporter: d.jua...@dkfz-heidelberg.de
  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: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to