public class SheetDataWriter extends Object
| Constructor and Description |
|---|
SheetDataWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
flush and close the temp data writer.
|
File |
createTempFile()
Create a temp file to write sheet data.
|
Writer |
createWriter(File fd)
Create a writer for the sheet data.
|
protected void |
finalize() |
int |
getLowestIndexOfFlushedRows() |
int |
getNumberOfCellsOfLastFlushedRow() |
int |
getNumberOfFlushedRows() |
InputStream |
getWorksheetXMLInputStream() |
protected void |
outputQuotedString(String s) |
void |
writeCell(int columnIndex,
Cell cell) |
void |
writeRow(int rownum,
SXSSFRow row)
Write a row to the file
|
public SheetDataWriter()
throws IOException
IOExceptionpublic File createTempFile() throws IOException
.gzIOExceptionpublic Writer createWriter(File fd) throws IOException
fd - the file to write toIOExceptionpublic void close()
throws IOException
getWorksheetXMLInputStream()IOExceptionpublic InputStream getWorksheetXMLInputStream() throws IOException
IOExceptionpublic int getNumberOfFlushedRows()
public int getNumberOfCellsOfLastFlushedRow()
public int getLowestIndexOfFlushedRows()
protected void finalize()
throws Throwable
public void writeRow(int rownum,
SXSSFRow row)
throws IOException
rownum - 0-based row numberrow - a rowIOExceptionpublic void writeCell(int columnIndex,
Cell cell)
throws IOException
IOExceptionprotected void outputQuotedString(String s) throws IOException
IOExceptionCopyright © 2020. All rights reserved.