Package org.apache.poi.xssf.streaming
Class GZIPSheetDataWriter
java.lang.Object
org.apache.poi.xssf.streaming.SheetDataWriter
org.apache.poi.xssf.streaming.GZIPSheetDataWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
Sheet writer that supports gzip compression of the temp files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a temp file to write sheet data.protected InputStream
Override this to translate (such as decrypt or expand) the file input stream as it is being read from disk.protected OutputStream
Override this to translate (such as encrypt or compress) the file output stream as it is being written to disk.Methods inherited from class org.apache.poi.xssf.streaming.SheetDataWriter
close, createWriter, finalize, getLastFlushedRow, getLowestIndexOfFlushedRows, getNumberOfCellsOfLastFlushedRow, getNumberOfFlushedRows, getTempFile, getWorksheetXMLInputStream, outputQuotedString, writeCell, writeRow
-
Constructor Details
-
GZIPSheetDataWriter
- Throws:
IOException
-
-
Method Details
-
createTempFile
Description copied from class:SheetDataWriter
Create a temp file to write sheet data. By default, temp files are created in the default temporary-file directory with a prefix "poi-sxssf-sheet" and suffix ".xml". Subclasses can override it and specify a different temp directory or filename or suffix, e.g..gz
- Overrides:
createTempFile
in classSheetDataWriter
- Returns:
- temp file to write sheet data
- Throws:
IOException
-
decorateInputStream
Description copied from class:SheetDataWriter
Override this to translate (such as decrypt or expand) the file input stream as it is being read from disk. The default behavior is to to pass the stream through unmodified.- Overrides:
decorateInputStream
in classSheetDataWriter
- Parameters:
fis
- the stream to decorate- Returns:
- a decorated stream
- Throws:
IOException
- See Also:
-
decorateOutputStream
Description copied from class:SheetDataWriter
Override this to translate (such as encrypt or compress) the file output stream as it is being written to disk. The default behavior is to to pass the stream through unmodified.- Overrides:
decorateOutputStream
in classSheetDataWriter
- Parameters:
fos
- the stream to decorate- Returns:
- a decorated stream
- Throws:
IOException
- See Also:
-