public class SequenceFactory.ProteinIterator extends Object
| Constructor and Description |
|---|
SequenceFactory.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 SequenceFactory.ProteinIterator(File file, boolean targetOnly) throws FileNotFoundException
targetOnly - if true only target proteins will be iteratedfile - the FASTA file.FileNotFoundExceptionpublic boolean hasNext()
throws IOException
IOExceptionpublic Protein getNextProtein()
public void close()
throws IOException
IOExceptionCopyright © 2014. All rights reserved.