@Beta public class StreamingSheetWriter extends SheetDataWriter
_out
Constructor and Description |
---|
StreamingSheetWriter() |
StreamingSheetWriter(java.io.OutputStream out) |
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 static java.io.Writer |
createWriter(java.io.OutputStream out)
Create a writer for the sheet data.
(为工作表数据创建编写器。)
|
java.io.InputStream |
getWorksheetXMLInputStream() |
decorateInputStream, decorateOutputStream, finalize, getLastFlushedRow, getLowestIndexOfFlushedRows, getNumberOfCellsOfLastFlushedRow, getNumberOfFlushedRows, getTempFile, outputEscapedString, writeCell, writeRow
public StreamingSheetWriter() throws java.io.IOException
java.io.IOException
(java.io.IOException)
public StreamingSheetWriter(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public java.io.File createTempFile() throws java.io.IOException
SheetDataWriter
.gz
(创建一个临时文件以写入工作表数据。默认情况下,临时文件在默认临时文件目录中创建,前缀为“poi-sxssf-sheet”,后缀为“.xml”。子类可以覆盖它并指定不同的临时目录或文件名或后缀,例如 .gz)
createTempFile
in class
SheetDataWriter
java.io.IOException
(java.io.IOException)
public java.io.Writer createWriter(java.io.File fd) throws java.io.IOException
SheetDataWriter
createWriter
in class
SheetDataWriter
fd
- the file to write to
(fd - 要写入的文件)
java.io.IOException
(java.io.IOException)
protected static java.io.Writer createWriter(java.io.OutputStream out) throws java.io.IOException
out
- the output stream to write to
(out - 要写入的输出流)
java.io.IOException
(java.io.IOException)
public void close() throws java.io.IOException
SheetDataWriter
SheetDataWriter.getWorksheetXMLInputStream()
(刷新并关闭临时数据写入器。此方法必须在调用 SheetDataWriter.getWorksheetXMLInputStream() 之前调用)
close
in interface
java.io.Closeable
(在接口 java.io.Closeable 中关闭)
close
in interface
java.lang.AutoCloseable
(在接口 java.lang.AutoCloseable 中关闭)
close
in class
SheetDataWriter
java.io.IOException
(java.io.IOException)
public java.io.InputStream getWorksheetXMLInputStream() throws java.io.IOException
getWorksheetXMLInputStream
in class
SheetDataWriter
java.io.IOException
(java.io.IOException)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.