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
IOException
public SheetDataWriter(SharedStringsTable sharedStringsTable) throws IOException
IOException
public File createTempFile() throws IOException
.gz
IOException
public Writer createWriter(File fd) throws IOException
fd
- the file to write toIOException
public void close() throws IOException
getWorksheetXMLInputStream()
close
in interface Closeable
close
in interface AutoCloseable
IOException
public InputStream getWorksheetXMLInputStream() throws IOException
IOException
public 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
IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved