public class SheetDataWriter
extends java.lang.Object
| Constructor and Description |
|---|
SheetDataWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
flush and close the temp data writer.
|
java.io.File |
createTempFile()
Create a temp file to write sheet data.
|
java.io.Writer |
createWriter(java.io.File fd)
Create a writer for the sheet data.
|
protected void |
finalize() |
int |
getLastFlushedRow() |
int |
getLowestIndexOfFlushedRows() |
int |
getNumberOfCellsOfLastFlushedRow() |
int |
getNumberOfFlushedRows() |
java.io.InputStream |
getWorksheetXMLInputStream() |
protected void |
outputQuotedString(java.lang.String s) |
void |
writeCell(int columnIndex,
Cell cell) |
void |
writeRow(int rownum,
SXSSFRow row)
Write a row to the file
|
public SheetDataWriter()
throws java.io.IOException
java.io.IOExceptionpublic java.io.File createTempFile()
throws java.io.IOException
.gzjava.io.IOExceptionpublic java.io.Writer createWriter(java.io.File fd)
throws java.io.IOException
fd - the file to write tojava.io.IOExceptionpublic void close()
throws java.io.IOException
getWorksheetXMLInputStream()java.io.IOExceptionpublic java.io.InputStream getWorksheetXMLInputStream()
throws java.io.IOException
java.io.IOExceptionpublic int getNumberOfFlushedRows()
public int getNumberOfCellsOfLastFlushedRow()
public int getLowestIndexOfFlushedRows()
public int getLastFlushedRow()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void writeRow(int rownum,
SXSSFRow row)
throws java.io.IOException
rownum - 0-based row numberrow - a rowjava.io.IOExceptionpublic void writeCell(int columnIndex,
Cell cell)
throws java.io.IOException
java.io.IOExceptionprotected void outputQuotedString(java.lang.String s)
throws java.io.IOException
java.io.IOExceptionCopyright 2014 The Apache Software Foundation or its licensors, as applicable.