public class MgfFileIterator extends Object
Constructor and Description |
---|
MgfFileIterator(File mgfFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Indicates whether the file contains another spectrum.
|
Spectrum |
next()
Returns the next spectrum in the file.
|
public MgfFileIterator(File mgfFile) throws IOException
mgfFile
- the file to go throughIOException
- if an exception occurs while reading the filepublic boolean hasNext()
public Spectrum next() throws IOException
IOException
- if an exception occurs while reading the fileCopyright © 2018. All rights reserved.