Interface DataWriterFactory<T>

    • Method Detail

      • createDataWriter

        DataWriter createDataWriter​(T owner,
                                    String suggestedFilename)
                             throws IOException
        Create a data writer for writing data that belongs to the given owner. The owner is typically a bioassay (serial bfs format) or a spot data field (matrix bfs format). The returned writer should usually have it's filename (DataWriter.getFilename()) and number of columns (DataWriter.getColumnCount()) set, since this is needed for the metadata generation.
        Parameters:
        owner - The object that "owns" the data that is written to the file
        suggestedFilename - An optional suggested filename, the factory may use this string or generate a different filename
        Returns:
        A data writer object with the filename and number of colums set (unless otherwise specified)
        Throws:
        IOException