aboutsummaryrefslogtreecommitdiffstats
path: root/poi-examples/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-10-04 21:55:39 +0000
committerPJ Fanning <fanningpj@apache.org>2021-10-04 21:55:39 +0000
commitc167c13df97fbdeb01f15f2ddad6fa321d3c7cb4 (patch)
tree8a08bc0b748b504c2fbb9a99cffb07ba3ba712fe /poi-examples/src
parentf05ae0c2c595cf3e039a95d476663007823beb1d (diff)
downloadpoi-c167c13df97fbdeb01f15f2ddad6fa321d3c7cb4.tar.gz
poi-c167c13df97fbdeb01f15f2ddad6fa321d3c7cb4.zip
[bug-65613] experimental SXSSF writeAvoidingTempFiles
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893899 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples/src')
-rw-r--r--poi-examples/src/main/java/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
index 0e13a4dce3..85dc007d2b 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
@@ -53,9 +53,12 @@ public class DeferredGeneration {
try (FileOutputStream fileOut = new FileOutputStream("DeferredGeneration.xlsx")) {
wb.write(fileOut);
+ //writeAvoidingTempFiles was added as an experimental change in POI 5.1.0
+ //wb.writeAvoidingTempFiles(fileOut);
} finally {
wb.dispose();
}
+ System.out.println("wrote DeferredGeneration.xlsx");
}
}
}