Class AbstractMultiSheetSpreadSheetWriter

    • Field Detail

      • m_SheetPrefix

        protected String m_SheetPrefix
        The prefix for the sheet names.
    • Constructor Detail

      • AbstractMultiSheetSpreadSheetWriter

        public AbstractMultiSheetSpreadSheetWriter()
    • Method Detail

      • getDefaultSheetPrefix

        protected String getDefaultSheetPrefix()
        Returns the default missing value.
        Returns:
        the default for missing values
      • setSheetPrefix

        public void setSheetPrefix​(String value)
        Sets the prefix for sheet names.
        Parameters:
        value - the prefix
      • getSheetPrefix

        public String getSheetPrefix()
        Returns the prefix for sheet names
        Returns:
        the prefix
      • sheetPrefixTipText

        public String sheetPrefixTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • canWriteMultiple

        public boolean canWriteMultiple()
        Returns whether the writer supports writing multiple sheets.
        Specified by:
        canWriteMultiple in interface MultiSheetSpreadSheetWriter
        Returns:
        true if it can write multiple sheets
      • doWrite

        protected boolean doWrite​(SpreadSheet content,
                                  Writer writer)
        Performs the actual writing. The caller must ensure that the writer gets closed.
        Overrides:
        doWrite in class AbstractSpreadSheetWriter
        Parameters:
        content - the spreadsheet to write
        writer - the writer to write the spreadsheet to
        Returns:
        true if successfully written
      • doWrite

        protected boolean doWrite​(SpreadSheet content,
                                  OutputStream out)
        Performs the actual writing. The caller must ensure that the output stream gets closed.
        Overrides:
        doWrite in class AbstractSpreadSheetWriter
        Parameters:
        content - the spreadsheet to write
        out - the output stream to write the spreadsheet to
        Returns:
        true if successfully written
      • doWrite

        protected boolean doWrite​(SpreadSheet[] content,
                                  String filename)
        Performs the actual writing. The caller must ensure that the writer gets closed.

        Default implementation returns always false.
        Parameters:
        content - the spreadsheet to write
        filename - the file to write the spreadsheet to
        Returns:
        true if successfully written
      • doWrite

        protected boolean doWrite​(SpreadSheet[] content,
                                  Writer writer)
        Performs the actual writing. The caller must ensure that the writer gets closed.

        Default implementation returns always false.
        Parameters:
        content - the spreadsheet to write
        writer - the writer to write the spreadsheet to
        Returns:
        true if successfully written
      • doWrite

        protected boolean doWrite​(SpreadSheet[] content,
                                  OutputStream out)
        Performs the actual writing. The caller must ensure that the output stream gets closed.

        Default implementation returns always false.
        Parameters:
        content - the spreadsheet to write
        out - the output stream to write the spreadsheet to
        Returns:
        true if successfully written
      • write

        public boolean write​(SpreadSheet[] content,
                             File file)
        Writes the spreadsheets to the specified file.
        Specified by:
        write in interface MultiSheetSpreadSheetWriter
        Parameters:
        content - the content to write
        file - the file to write to
        Returns:
        true if successfully written
      • write

        public boolean write​(SpreadSheet[] content,
                             String filename)
        Writes the spreadsheets to the given file.
        Specified by:
        write in interface MultiSheetSpreadSheetWriter
        Parameters:
        content - the spreadsheet to write
        filename - the file to write the spreadsheet to
        Returns:
        true if successfully written
      • write

        public boolean write​(SpreadSheet[] content,
                             OutputStream stream)
        Writes the spreadsheets to the given output stream. The caller must ensure that the stream gets closed.
        Specified by:
        write in interface MultiSheetSpreadSheetWriter
        Parameters:
        content - the spreadsheet to write
        stream - the output stream to write the spreadsheet to
        Returns:
        true if successfully written
      • write

        public boolean write​(SpreadSheet[] content,
                             Writer writer)
        Writes the spreadsheets to the given writer. The caller must ensure that the writer gets closed.
        Specified by:
        write in interface MultiSheetSpreadSheetWriter
        Parameters:
        content - the spreadsheet to write
        writer - the writer to write the spreadsheet to
        Returns:
        true if successfully written