summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2018-11-25 22:05:02 +0000
committerAndreas Beeker <kiwiwings@apache.org>2018-11-25 22:05:02 +0000
commite96aae8be4e7bc6e7670fabb2f95dd0b5d8683a2 (patch)
treec7e391943d3ac06efd8bcc8120b8b23db0ef3104
parentd28720afd08d1998a7784f09e6cfd5ed9bec2dc9 (diff)
downloadpoi-e96aae8be4e7bc6e7670fabb2f95dd0b5d8683a2.tar.gz
poi-e96aae8be4e7bc6e7670fabb2f95dd0b5d8683a2.zip
#60713 - (S)XSSFWorkbook/POIXMLDocument.write(OutputStream) closes the OutputStream
regression git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847438 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/java/org/apache/poi/openxml4j/util/ZipInputStreamZipEntrySource.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/util/ZipInputStreamZipEntrySource.java b/src/ooxml/java/org/apache/poi/openxml4j/util/ZipInputStreamZipEntrySource.java
index e185239ff1..0a56966d4f 100644
--- a/src/ooxml/java/org/apache/poi/openxml4j/util/ZipInputStreamZipEntrySource.java
+++ b/src/ooxml/java/org/apache/poi/openxml4j/util/ZipInputStreamZipEntrySource.java
@@ -38,7 +38,7 @@ public class ZipInputStreamZipEntrySource implements ZipEntrySource {
/**
* Reads all the entries from the ZipInputStream
- * into memory, and closes the source stream.
+ * into memory, and don't close (since POI 4.0.1) the source stream.
* We'll then eat lots of memory, but be able to
* work with the entries at-will.
*/
@@ -50,7 +50,6 @@ public class ZipInputStreamZipEntrySource implements ZipEntrySource {
}
zipEntries.put(zipEntry.getName(), new ZipArchiveFakeEntry(zipEntry, inp));
}
- inp.close();
}
@Override