public class MgfFileIterator extends Object implements MsFileIterator
Constructor and Description |
---|
MgfFileIterator(File mgfFile,
WaitingHandler waitingHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Spectrum |
getSpectrum()
Returns the spectrum corresponding to the title returned by the last call
to the next() method.
|
String |
next()
Returns the title of the next spectrum, null if none.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMsFileIterator, getSupportedExtensions
public MgfFileIterator(File mgfFile, WaitingHandler waitingHandler)
mgfFile
- the file to go throughwaitingHandler
- the waiting handlerpublic String next()
MsFileIterator
next
in interface MsFileIterator
public Spectrum getSpectrum()
MsFileIterator
getSpectrum
in interface MsFileIterator
public void close()
close
in interface MsFileIterator
close
in interface AutoCloseable
Copyright © 2021. All rights reserved.