Class HeaderIterator
java.lang.Object
com.compomics.util.experiment.io.biology.protein.iterators.HeaderIterator
Iterator for the headers of a FASTA file. Errors encountered during iteration
are passed as runtime exceptions.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the iterator.getNextHeader(WaitingHandler waitingHandler) Returns the next header.Null if none.
-
Constructor Details
-
HeaderIterator
Constructor without sanity check.- Parameters:
fastaFile- the FASTA file- Throws:
FileNotFoundException- exception thrown if the file could not be found
-
-
Method Details
-
getNextHeader
Returns the next header.Null if none.- Parameters:
waitingHandler- the waiting handler- Returns:
- the next header
-
close
public void close()Closes the iterator.
-