mirror of
https://github.com/apache/poi.git
synced 2025-03-06 17:09:08 +00:00
[bug-65609] add flushBufferedData to SXSSFSheet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b15e441e80
commit
10e607a1ce
@ -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();
|
||||
|
@ -443,6 +443,10 @@ public class SheetDataWriter implements Closeable {
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user