aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-01-30 18:41:57 +0000
committerDominik Stadler <centic@apache.org>2021-01-30 18:41:57 +0000
commit615de587f7413f59a336c7f7adc52b8408e7b85b (patch)
tree5e694b7984bcc46fa3a6162734b9ba7cbfb8dccd /src/ooxml/java/org
parent1d26df99ee6e300d14ead30cf830fbab5162721e (diff)
downloadpoi-615de587f7413f59a336c7f7adc52b8408e7b85b.tar.gz
poi-615de587f7413f59a336c7f7adc52b8408e7b85b.zip
Enable storing an SXSSF workbook twice
Verify this via a unit-test for all types of workbooks Add a test to verify the contents is byte-for-byte equal Also remove an overwritten test which works the same now for all three workbook-types git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886060 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
index 67dbd3dc71..93f0b50410 100644
--- a/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
+++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
@@ -131,7 +131,7 @@ public class SheetDataWriter implements Closeable {
* This method <em>must</em> be invoked before calling {@link #getWorksheetXMLInputStream()}
*/
public void close() throws IOException {
- _out.flush();
+ // this would break writing the same document multiple times: _out.flush();
_out.close();
}