public class SheetDataWriter extends Object implements Closeable
| Constructor and Description |
|---|
SheetDataWriter() |
SheetDataWriter(SharedStringsTable sharedStringsTable) |
| 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.
|
int |
getLastFlushedRow() |
int |
getLowestIndexOfFlushedRows() |
int |
getNumberOfCellsOfLastFlushedRow() |
int |
getNumberOfFlushedRows() |
InputStream |
getWorksheetXMLInputStream() |
void |
writeCell(int columnIndex,
Cell cell) |
void |
writeRow(int rownum,
SXSSFRow row)
Write a row to the file
|
public SheetDataWriter()
throws IOException
IOExceptionpublic SheetDataWriter(SharedStringsTable sharedStringsTable) 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()close in interface Closeableclose in interface AutoCloseableIOExceptionpublic InputStream getWorksheetXMLInputStream() throws IOException
IOExceptionpublic int getNumberOfFlushedRows()
public int getNumberOfCellsOfLastFlushedRow()
public int getLowestIndexOfFlushedRows()
public int getLastFlushedRow()
public void writeRow(int rownum,
SXSSFRow row)
throws IOException
rownum - 0-based row numberrow - a rowIOException - If an I/O error occurspublic void writeCell(int columnIndex,
Cell cell)
throws IOException
IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved