]> source.dussan.org Git - poi.git/commitdiff
add DeferredGeneration sample
authorPJ Fanning <fanningpj@apache.org>
Sat, 6 Mar 2021 09:10:58 +0000 (09:10 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 6 Mar 2021 09:10:58 +0000 (09:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887250 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java

index e3907a98078bd8f687b272a24bf02aab034b1f48..9c53c4ee0b901b378ba021b33b7e80810cb88c1c 100644 (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 {