|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.xssf.streaming.SheetDataWriter
public class SheetDataWriter
Initially copied from BigGridDemo "SpreadsheetWriter". Unlike the original code which wrote the entire document, this class only writes the "sheetData" document fragment so that it was renamed to "SheetDataWriter"
Constructor Summary | |
---|---|
SheetDataWriter()
|
|
SheetDataWriter(SharedStringsTable sharedStringsTable)
|
Method Summary | |
---|---|
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 java.io.InputStream |
decorateInputStream(java.io.FileInputStream fis)
Override this to translate (such as decrypt or expand) the file input stream as it is being read from disk. |
protected java.io.OutputStream |
decorateOutputStream(java.io.FileOutputStream fos)
Override this to translate (such as encrypt or compress) the file output stream as it is being written to disk. |
protected void |
finalize()
|
int |
getLastFlushedRow()
|
int |
getLowestIndexOfFlushedRows()
|
int |
getNumberOfCellsOfLastFlushedRow()
|
int |
getNumberOfFlushedRows()
|
protected java.io.File |
getTempFile()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SheetDataWriter() throws java.io.IOException
java.io.IOException
public SheetDataWriter(SharedStringsTable sharedStringsTable) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.io.File createTempFile() throws java.io.IOException
.gz
java.io.IOException
public java.io.Writer createWriter(java.io.File fd) throws java.io.IOException
fd
- the file to write to
java.io.IOException
protected java.io.OutputStream decorateOutputStream(java.io.FileOutputStream fos) throws java.io.IOException
fos
- the stream to decorate
java.io.IOException
decorateInputStream(FileInputStream)
public void close() throws java.io.IOException
getWorksheetXMLInputStream()
close
in interface java.io.Closeable
java.io.IOException
protected java.io.File getTempFile()
public java.io.InputStream getWorksheetXMLInputStream() throws java.io.IOException
java.io.IOException
protected java.io.InputStream decorateInputStream(java.io.FileInputStream fis) throws java.io.IOException
fis
- the stream to decorate
java.io.IOException
decorateOutputStream(FileOutputStream)
public int getNumberOfFlushedRows()
public int getNumberOfCellsOfLastFlushedRow()
public int getLowestIndexOfFlushedRows()
public int getLastFlushedRow()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void writeRow(int rownum, SXSSFRow row) throws java.io.IOException
rownum
- 0-based row numberrow
- a row
java.io.IOException
public void writeCell(int columnIndex, Cell cell) throws java.io.IOException
java.io.IOException
protected void outputQuotedString(java.lang.String s) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |