public class MZMLMultiSpectraParser extends MultiSpectraParser
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MZMLMultiSpectraParser.ATTR |
protected static class |
MZMLMultiSpectraParser.TAG |
| Modifier and Type | Field and Description |
|---|---|
protected MZMLIndex |
index |
protected ArrayList<IScan> |
parsedScans |
protected org.apache.commons.pool2.ObjectPool<javolution.xml.internal.stream.XMLStreamReaderImpl> |
readerPool |
protected MZMLRunInfo |
runInfo |
protected MZMLFile |
source |
protected MzmlVars |
vars |
DATA_FACTORY, is, numScansToProcess, subset| Constructor and Description |
|---|
MZMLMultiSpectraParser(InputStream is,
LCMSDataSubset subset,
MZMLFile source) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCurScanAndFlushVars() |
List<IScan> |
call() |
protected boolean |
doesNeedSpectrumParsing(IScan scan) |
int |
findThisStreamFirstScanLen()
Intended use: find the length of the last scan entry in the file.
|
protected boolean |
flushVarsIfNoCurScan()
If the current
vars variable doesn't contain a scan, that we've started processing, then flushes all
the fields in vars and returns true, otherwise does nothing and returns false. |
org.apache.commons.pool2.ObjectPool<javolution.xml.internal.stream.XMLStreamReaderImpl> |
getReaderPool() |
MZMLFile |
getSource() |
protected int |
mapIdRefToInternalScanNum(javolution.text.CharArray id)
Given a scan ID goes to the index and tries to find a mapping.
|
protected int |
mapRawNumToInternalScanNum(int spectrumIndex)
Given a scan internal number (spectrum index) goes to the index and tries to find a mapping.
|
void |
setReaderPool(org.apache.commons.pool2.ObjectPool<javolution.xml.internal.stream.XMLStreamReaderImpl> readerPool) |
getNumScansToProcess, setNumScansToProcessprotected final MZMLFile source
protected MZMLRunInfo runInfo
protected MZMLIndex index
protected MzmlVars vars
protected org.apache.commons.pool2.ObjectPool<javolution.xml.internal.stream.XMLStreamReaderImpl> readerPool
public MZMLMultiSpectraParser(InputStream is, LCMSDataSubset subset, MZMLFile source) throws FileParsingException
FileParsingExceptionpublic MZMLFile getSource()
getSource in class MultiSpectraParserpublic org.apache.commons.pool2.ObjectPool<javolution.xml.internal.stream.XMLStreamReaderImpl> getReaderPool()
public void setReaderPool(org.apache.commons.pool2.ObjectPool<javolution.xml.internal.stream.XMLStreamReaderImpl> readerPool)
public int findThisStreamFirstScanLen()
throws FileParsingException
FileParsingExceptionprotected void addCurScanAndFlushVars()
protected boolean flushVarsIfNoCurScan()
vars variable doesn't contain a scan, that we've started processing, then flushes all
the fields in vars and returns true, otherwise does nothing and returns false.protected int mapIdRefToInternalScanNum(javolution.text.CharArray id)
throws FileParsingException
id - FileParsingException - in case the mapping can't be doneprotected int mapRawNumToInternalScanNum(int spectrumIndex)
throws FileParsingException
spectrumIndex - FileParsingExceptionprotected boolean doesNeedSpectrumParsing(IScan scan)
Copyright © 2017. All rights reserved.