aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2014-07-24 18:58:27 +0000
committerNick Burch <nick@apache.org>2014-07-24 18:58:27 +0000
commit7db6e8557e69b40bb4c8896aa380af8fe8732f46 (patch)
treebb07f15441a85e76bd17ab9c7b3815a70d09bec3 /src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
parente2f26b630c10fd34197c0d7f82f815f0417f18e0 (diff)
downloadpoi-7db6e8557e69b40bb4c8896aa380af8fe8732f46.tar.gz
poi-7db6e8557e69b40bb4c8896aa380af8fe8732f46.zip
Patch from Raúl Wegmann from bug #56735 / GitHub Pull #10 - Rationalise POI temp file creation to the TempFile util class, and allow a system wide setting of where Temp files (eg for SXSSF) go, via TempFile / TempFileCreationStrategy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613246 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java')
-rw-r--r--src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
index a352a8d1f6..62f26b7546 100644
--- a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
+++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
@@ -43,6 +43,7 @@ import org.apache.poi.openxml4j.util.ZipFileZipEntrySource;
import org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
+import org.apache.poi.util.TempFile;
/**
* Physical zip package.
@@ -343,7 +344,7 @@ public final class ZipPackage extends Package {
if (targetFile.exists()) {
// Case of a package previously open
- File tempFile = File.createTempFile(
+ File tempFile = TempFile.createTempFile(
generateTempFileName(FileHelper
.getDirectory(targetFile)), ".tmp");