Interface DataWriterFactory<T>

All Known Implementing Classes:
AbstractDataWriterFactory, GenericBaseDataWriterFactory, GenericDiskDataWriterFactory

public interface DataWriterFactory<T>
Factory implementations are responsible for creating BFS data writers that accepts data for a given owner object.
Version:
2.15
Author:
Nicklas
Last modified
$Date: 2009-12-15 13:56:17 +0100 (ti, 15 dec 2009) $
  • Method Summary

    Modifier and Type Method Description
    DataWriter createDataWriter​(T owner, String suggestedFilename)
    Create a data writer for writing data that belongs to the given owner.
  • Method Details

    • 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