public class MzmlFileIterator extends Object implements MsFileIterator
Modifier and Type | Class and Description |
---|---|
static class |
MzmlFileIterator.Precision
The supported precision types for the binary data as defined in the mzML
specifications and the PSI-MS ontology.
|
Constructor and Description |
---|
MzmlFileIterator(File mzmlFile,
WaitingHandler waitingHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Number[] |
getBinaryDataAsNumberArray(String compression,
MzmlFileIterator.Precision precision,
byte[] binary)
Retrieve the binary data as an array of numeric values.
|
Spectrum |
getSpectrum()
Returns the spectrum corresponding to the title returned by the last call
to the next() method.
|
boolean |
needsUncompressing(String compression)
Reads true if the binary data is compressed.
|
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 MzmlFileIterator(File mzmlFile, WaitingHandler waitingHandler)
mzmlFile
- the mzml 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
public boolean needsUncompressing(String compression)
compression
- the compression levelpublic Number[] getBinaryDataAsNumberArray(String compression, MzmlFileIterator.Precision precision, byte[] binary)
compression
- the compression accession numberprecision
- the precision typebinary
- the binary data, base64 encodedCopyright © 2021. All rights reserved.