Class SimpleStreamSpreadSheetWriter

    • Field Detail

      • m_OmitMissing

        protected boolean m_OmitMissing
        whether to omit missing cells or ones with missing value.
    • Constructor Detail

      • SimpleStreamSpreadSheetWriter

        public SimpleStreamSpreadSheetWriter()
    • Method Detail

      • setOmitMissing

        public void setOmitMissing​(boolean value)
        Sets whether to omit missing cells and ones with missing value.
        Parameters:
        value - true if to omit
      • getOmitMissing

        public boolean getOmitMissing()
        Returns whether to omit missing cells and ones with missing value.
        Returns:
        true if to omit
      • omitMissingTipText

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

        public SpreadSheetReader getCorrespondingReader()
        Returns, if available, the corresponding reader.
        Returns:
        the reader, null if none available
      • writeCell

        protected void writeCell​(BufferedWriter writer,
                                 int index,
                                 Cell cell)
                          throws Exception
        Writes a cell using the supplied writer.
        Parameters:
        writer - the writer to use
        index - the 0-based index of the cell
        cell - the cell to write, null for missing cell
        Throws:
        Exception
      • writeRow

        protected boolean writeRow​(BufferedWriter writer,
                                   SpreadSheet sheet,
                                   Row row)
        Writes a row using the supplied writer.
        Parameters:
        writer - the writer to use
        sheet - the sheet this row belongs to
        row - the row to write
        Returns:
        true if successful written
      • 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