org.systemsbiology.jrap
Class MSXMLParser

java.lang.Object
  extended byorg.systemsbiology.jrap.MSXMLParser

public final class MSXMLParser
extends java.lang.Object

A generic utility class for reading an MSXML file in a random access fashion and utilizing a stored scan index for fast reads.


Constructor Summary
MSXMLParser(java.lang.String fileName)
           
 
Method Summary
 MZXMLFileInfo getHeaderInfo()
          Get the header information contained in the mzXML file, which is constant for every scan.
 int getScanCount()
          Get the total number of scans in the mzXMLfile handled by this parser.
 Scan rap(int scanNumber)
          Read a particular scan from a MSXML file and return a generic Scan object with it's data.
 ScanHeader rapHeader(int scanNumber)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSXMLParser

public MSXMLParser(java.lang.String fileName)
Method Detail

rapHeader

public ScanHeader rapHeader(int scanNumber)

rap

public Scan rap(int scanNumber)
Read a particular scan from a MSXML file and return a generic Scan object with it's data. Note: scanNumbers are 1-based, so scanNumber must be at least 1 and be not greater than getScanCount() + 1


getScanCount

public int getScanCount()
Get the total number of scans in the mzXMLfile handled by this parser.

Returns:
The number of scans.

getHeaderInfo

public MZXMLFileInfo getHeaderInfo()
Get the header information contained in the mzXML file, which is constant for every scan.

Returns:
An instance of MZXMLFileInfo