Interface SpreadSheetWriter

    • Method Detail

      • getFormatDescription

        String getFormatDescription()
        Returns a string describing the format (used in the file chooser).
        Returns:
        a description suitable for displaying in the file chooser
      • getFormatExtensions

        String[] getFormatExtensions()
        Returns the extension(s) of the format.
        Returns:
        the extension (without the dot!)
      • getCorrespondingReader

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

        void reset()
        Resets the writer.
      • write

        boolean write​(SpreadSheet content,
                      File file)
        Writes the given content to the specified file.
        Parameters:
        content - the content to write
        file - the file to write to
        Returns:
        true if successfully written
      • write

        boolean write​(SpreadSheet content,
                      String filename)
        Writes the spreadsheet to the given file.
        Parameters:
        content - the spreadsheet to write
        filename - the file to write the spreadsheet to
        Returns:
        true if successfully written
      • write

        boolean write​(SpreadSheet content,
                      OutputStream stream)
        Writes the spreadsheet to the given output stream. The caller must ensure that the stream gets closed.
        Parameters:
        content - the spreadsheet to write
        stream - the output stream to write the spreadsheet to
        Returns:
        true if successfully written
      • write

        boolean write​(SpreadSheet content,
                      Writer writer)
        Writes the spreadsheet to the given writer. The caller must ensure that the writer gets closed.
        Parameters:
        content - the spreadsheet to write
        writer - the writer to write the spreadsheet to
        Returns:
        true if successfully written