Class BAMMerger

  • All Implemented Interfaces:
    Merger

    public class BAMMerger
    extends Object
    implements Merger
    This class define a merger class for SAM files.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • BAMMerger

        public BAMMerger()
    • Method Detail

      • getFormat

        public DataFormat getFormat()
        Description copied from interface: Merger
        Get the format related to the splitter.
        Specified by:
        getFormat in interface Merger
        Returns:
        a DataFormat object
      • merge

        public void merge​(Iterator<DataFile> inFileIterator,
                          DataFile outFile)
                   throws IOException
        Description copied from interface: Merger
        Merger data.
        Specified by:
        merge in interface Merger
        Parameters:
        inFileIterator - iterator over DataFile to merger
        outFile - output DataFile
        Throws:
        IOException - if an error occurs while split data