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