|
|
|
@ -28,8 +28,8 @@ import org.apache.poi.xssf.streaming.SXSSFWorkbook; |
|
|
|
|
* Convenient superclass for Excel document views in the Office 2007 XLSX format, |
|
|
|
|
* using POI's streaming variant. Compatible with Apache POI 3.9 and higher. |
|
|
|
|
* |
|
|
|
|
* <p>For working with the workbook in the subclass, see |
|
|
|
|
* <a href="http://poi.apache.org">Apache's POI site</a> |
|
|
|
|
* <p>For working with the workbook in subclasses, see |
|
|
|
|
* <a href="http://poi.apache.org">Apache's POI site</a>. |
|
|
|
|
* |
|
|
|
|
* @author Juergen Hoeller |
|
|
|
|
* @since 4.2 |
|
|
|
@ -45,14 +45,14 @@ public abstract class AbstractXlsxStreamingView extends AbstractXlsxView { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* This implementation disposes the {@link SXSSFWorkbook} when done with rendering. |
|
|
|
|
* This implementation disposes of the {@link SXSSFWorkbook} when done with rendering. |
|
|
|
|
* @see org.apache.poi.xssf.streaming.SXSSFWorkbook#dispose() |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
protected void renderWorkbook(Workbook workbook, HttpServletResponse response) throws IOException { |
|
|
|
|
super.renderWorkbook(workbook, response); |
|
|
|
|
|
|
|
|
|
// Dispose temporary files in case of streaming variant...
|
|
|
|
|
// Dispose of temporary files in case of streaming variant...
|
|
|
|
|
((SXSSFWorkbook) workbook).dispose(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|