add DeferredGeneration sample

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-03-06 09:10:58 +00:00
parent d3c7aa4dcf
commit 78452956ce
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ import org.apache.poi.xssf.streaming.DeferredSXSSFWorkbook;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* This sample demonstrates how to use DeferredSXSSFWorkbook to generate workbooks in a streaming way.
* This approach avoids the use of temporary files and can be used to output to streams like
* HTTP response streams.
*/
public class DeferredGeneration {
public static void main(String[] args) throws IOException {