https://bz.apache.org/bugzilla/show_bug.cgi?id=66275

            Bug ID: 66275
           Summary: SXSSFSheet generated temporary files remains on disk
           Product: POI
           Version: 5.2.2-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SXSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

After SheetDataWriter.finalize() method is removed, SheetDataWriter.dispose()
is not called anymore. Thus _fd, the temporary file created per sheet remains
on disk.

Solution suggestion, add the code to SheetDataWriter.close() method, sample
shown below:

public void close() throws IOException 
{
    // this would break writing the same document multiple times: _out.flush();
    _out.close();
    //Moved from finalize() method
    if (!_fd.delete()) 
    {
        logger.log(POILogger.ERROR, "Can't delete temporary encryption file:
"+_fd);
    }
}

-- 
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]

Reply via email to