Class SheetDataWriter

    • Method Detail

      • createTempFile

        public File createTempFile()
                            throws IOException
        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
        Returns:
        temp file to write sheet data
        Throws:
        IOException
      • createWriter

        public Writer createWriter​(File fd)
                            throws IOException
        Create a writer for the sheet data.
        Parameters:
        fd - the file to write to
        Throws:
        IOException
      • getWorksheetXMLInputStream

        public InputStream getWorksheetXMLInputStream()
                                               throws IOException
        Returns:
        a stream to read temp file with the sheet data
        Throws:
        IOException
      • getNumberOfFlushedRows

        public int getNumberOfFlushedRows()
      • getNumberOfCellsOfLastFlushedRow

        public int getNumberOfCellsOfLastFlushedRow()
      • getLowestIndexOfFlushedRows

        public int getLowestIndexOfFlushedRows()
      • getLastFlushedRow

        public int getLastFlushedRow()
      • writeRow

        public void writeRow​(int rownum,
                             SXSSFRow row)
                      throws IOException
        Write a row to the file
        Parameters:
        rownum - 0-based row number
        row - a row
        Throws:
        IOException - If an I/O error occurs