public class SequenceFactory.HeaderIterator extends Object
Constructor and Description |
---|
HeaderIterator(File file,
boolean targetOnly)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection to the file.
|
Header |
getNext()
Returns the next header in the FASTA file.
|
boolean |
hasNext()
Returns true if there is a next header.
|
public HeaderIterator(File file, boolean targetOnly) throws FileNotFoundException
targetOnly
- if true only target proteins will be iteratedfile
- the FASTA file to iterateFileNotFoundException
- if a FileNotFoundException occurspublic boolean hasNext() throws IOException
IOException
- if a IOException occurspublic Header getNext()
public void close() throws IOException
IOException
- if a IOException occursCopyright © 2016. All rights reserved.