You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/10/01 16:51:13 UTC
svn commit: r1893791 - in
/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming:
SXSSFSheet.java SheetDataWriter.java
Author: fanningpj
Date: Fri Oct 1 16:51:12 2021
New Revision: 1893791
URL: http://svn.apache.org/viewvc?rev=1893791&view=rev
Log:
[bug-65609] add flushBufferedData to SXSSFSheet
Modified:
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
Modified: poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java?rev=1893791&r1=1893790&r2=1893791&view=diff
==============================================================================
--- poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java (original)
+++ poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java Fri Oct 1 16:51:12 2021
@@ -1873,6 +1873,16 @@ public class SXSSFSheet implements Sheet
this.flushRows(0);
}
+ /**
+ * Flush all the data in the buffered stream to the temp file.
+ *
+ * @throws IOException If an I/O error occurs
+ */
+ public void flushBufferedData() throws IOException
+ {
+ this._writer.flush();
+ }
+
private void flushOneRow() throws IOException
{
Integer firstRowNum = _rows.firstKey();
Modified: poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java?rev=1893791&r1=1893790&r2=1893791&view=diff
==============================================================================
--- poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java (original)
+++ poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java Fri Oct 1 16:51:12 2021
@@ -443,6 +443,10 @@ public class SheetDataWriter implements
return c < ' ' || ('\uFFFE' <= c && c <= '\uFFFF');
}
+ void flush() throws IOException {
+ this._out.flush();
+ }
+
/**
* Deletes the temporary file that backed this sheet on disk.
* @return true if the file was deleted, false if it wasn't.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org