aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-03-06 09:10:58 +0000
committerPJ Fanning <fanningpj@apache.org>2021-03-06 09:10:58 +0000
commit78452956cee9ba3eb763e1f7d74b6197c68f9d85 (patch)
treec2702373ca49aa87ebb861630884b68f9a4dcc71 /src
parentd3c7aa4dcf214e2bdaca4042d2886535514fd6ee (diff)
downloadpoi-78452956cee9ba3eb763e1f7d74b6197c68f9d85.tar.gz
poi-78452956cee9ba3eb763e1f7d74b6197c68f9d85.zip
add DeferredGeneration sample
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887250 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java b/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
index e3907a9807..9c53c4ee0b 100644
--- a/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
+++ b/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
@@ -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 {