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