org.apache.poi.xssf.streaming
Class GZIPSheetDataWriter
- java.lang.Object
-
- org.apache.poi.xssf.streaming.SheetDataWriter
-
- org.apache.poi.xssf.streaming.GZIPSheetDataWriter
-
public class GZIPSheetDataWriter extends SheetDataWriter
Sheet writer that supports gzip compression of the temp files.
-
-
Constructor Summary
Constructors Constructor and Description GZIPSheetDataWriter()GZIPSheetDataWriter(SharedStringsTable sharedStringsTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.io.FilecreateTempFile()Create a temp file to write sheet data.java.io.WritercreateWriter(java.io.File fd)Create a writer for the sheet data.java.io.InputStreamgetWorksheetXMLInputStream()-
Methods inherited from class org.apache.poi.xssf.streaming.SheetDataWriter
close, getLastFlushedRow, getLowestIndexOfFlushedRows, getNumberOfCellsOfLastFlushedRow, getNumberOfFlushedRows, writeCell, writeRow
-
-
-
-
Constructor Detail
-
GZIPSheetDataWriter
public GZIPSheetDataWriter() throws java.io.IOException- Throws:
java.io.IOException
-
GZIPSheetDataWriter
public GZIPSheetDataWriter(SharedStringsTable sharedStringsTable) throws java.io.IOException
- Parameters:
sharedStringsTable- the shared strings table, or null if inline text is used- Throws:
java.io.IOException
-
-
Method Detail
-
createTempFile
public java.io.File createTempFile() throws java.io.IOExceptionDescription copied from class:SheetDataWriterCreate 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:
createTempFilein classSheetDataWriter- Returns:
- temp file to write sheet data
- Throws:
java.io.IOException
-
createWriter
public java.io.Writer createWriter(java.io.File fd) throws java.io.IOExceptionDescription copied from class:SheetDataWriterCreate a writer for the sheet data.- Overrides:
createWriterin classSheetDataWriter- Parameters:
fd- the file to write to- Returns:
- a wrapped instance of GZIPOutputStream
- Throws:
java.io.IOException
-
getWorksheetXMLInputStream
public java.io.InputStream getWorksheetXMLInputStream() throws java.io.IOException- Overrides:
getWorksheetXMLInputStreamin classSheetDataWriter- Returns:
- a GZIPInputStream stream to read the compressed temp file
- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG