java.lang.Object
com.compomics.util.experiment.io.biology.protein.iterators.FastaIterator
All Implemented Interfaces:
ProteinIterator

public class FastaIterator
extends Object
implements ProteinIterator
Iterator for a FASTA file.
Author:
Marc Vaudel
  • Field Details

  • Constructor Details

  • Method Details

    • getNextProtein

      public Protein getNextProtein()
      Description copied from interface: ProteinIterator
      Returns the next protein. Null if end was reached. If an error is encountered while iterating, the exception is thrown as runtime exception.
      Specified by:
      getNextProtein in interface ProteinIterator
      Returns:
      the next protein
    • getLastHeader

      public Header getLastHeader()
      Returns the header corresponding to the last protein.
      Returns:
      the header corresponding to the last protein
    • close

      public void close()
      Closes the iterator.