public class CmsFileIterator extends Object implements MsFileIterator
Constructor and Description |
---|
CmsFileIterator(File file,
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 CmsFileIterator(File file, WaitingHandler waitingHandler) throws IOException
file
- The file to iterate.waitingHandler
- The waiting handler.IOException
- Exception thrown if an error occurred while reading
the file.public 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.