Class GnumericSpreadSheetWriter

    • Constructor Detail

      • GnumericSpreadSheetWriter

        public GnumericSpreadSheetWriter()
    • Method Detail

      • setCreationTimestamp

        public void setCreationTimestamp​(BaseDateTime value)
        Sets the creation timestamp.
        Parameters:
        value - the timestamp
      • getCreationTimestamp

        public BaseDateTime getCreationTimestamp()
        Returns the creation timestamp.
        Returns:
        the timestamp
      • creationTimestampTipText

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

        public void setUncompressedOutput​(boolean value)
        Sets whether to output uncompressed XML.
        Parameters:
        value - if true uncompressed XML is generated
      • getUncompressedOutput

        public boolean getUncompressedOutput()
        Returns whether to output uncompressed XML.
        Returns:
        true if uncompressed XML is generated
      • uncompressedOutputTipText

        public String uncompressedOutputTipText()
        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
      • getBound

        protected long getBound​(SpreadSheet content,
                                boolean cols)
        Returns the integer bound for number of columns/rows.
        Parameters:
        content - the sheet to use as basis
        cols - if true columns are checked, otherwise rows
        Returns:
        the bound (base 256)
      • 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 AbstractMultiSheetSpreadSheetWriter
        Parameters:
        content - the spreadsheets to write
        out - the output stream to write the spreadsheet to
        Returns:
        true if successfully written