public interface MsFileIterator extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
static MsFileIterator |
getMsFileIterator(File file,
WaitingHandler waitingHandler)
Returns the file reader for the given mass spectrometry file based on its
extension.
|
Spectrum |
getSpectrum()
Returns the spectrum corresponding to the title returned by the last call
to the next() method.
|
static String[] |
getSupportedExtensions()
Returns the supported extensions.
|
String |
next()
Returns the title of the next spectrum, null if none.
|
String next()
Spectrum getSpectrum()
void close()
close
in interface AutoCloseable
static MsFileIterator getMsFileIterator(File file, WaitingHandler waitingHandler) throws IOException
file
- The mass spectrometry file.waitingHandler
- The waiting handler.IOException
- Exception thrown if an error occurred while
reading the file.static String[] getSupportedExtensions()
Copyright © 2021. All rights reserved.