public class GZIPSheetDataWriter extends SheetDataWriter
_out
Constructor and Description |
---|
GZIPSheetDataWriter() |
GZIPSheetDataWriter(SharedStringsTable sharedStringsTable) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
createTempFile()
Create a temp file to write 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.
(覆盖它以在将文件输出流写入磁盘时转换(例如加密或压缩)文件输出流。)
|
close, createWriter, finalize, getLastFlushedRow, getLowestIndexOfFlushedRows, getNumberOfCellsOfLastFlushedRow, getNumberOfFlushedRows, getTempFile, getWorksheetXMLInputStream, outputEscapedString, writeCell, writeRow
public GZIPSheetDataWriter() throws java.io.IOException
java.io.IOException
(java.io.IOException)
public GZIPSheetDataWriter(SharedStringsTable sharedStringsTable) throws java.io.IOException
sharedStringsTable
- the shared strings table, or null if inline text is used
(sharedStringsTable - 共享字符串表,如果使用内联文本,则为 null)
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)
protected java.io.InputStream decorateInputStream(java.io.FileInputStream fis) throws java.io.IOException
SheetDataWriter
decorateInputStream
in class
SheetDataWriter
fis
- the stream to decorate
(fis - 要装饰的流)
java.io.IOException
- if decorating the stream fails
(java.io.IOException - 如果装饰流失败)
SheetDataWriter.decorateOutputStream(FileOutputStream)
protected java.io.OutputStream decorateOutputStream(java.io.FileOutputStream fos) throws java.io.IOException
SheetDataWriter
decorateOutputStream
in class
SheetDataWriter
fos
- the stream to decorate
(fos - 要装饰的流)
java.io.IOException
- if decorating the stream fails
(java.io.IOException - 如果装饰流失败)
SheetDataWriter.decorateInputStream(FileInputStream)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.