From 78452956cee9ba3eb763e1f7d74b6197c68f9d85 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 6 Mar 2021 09:10:58 +0000 Subject: [PATCH] add DeferredGeneration sample git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887250 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/examples/xssf/streaming/DeferredGeneration.java | 5 +++++ 1 file changed, 5 insertions(+) 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 {