|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.systemsbiology.jrap.stax.MSXMLParser
public final class MSXMLParser
A generic utility class for reading an MSXML file in a random access fashion and utilizing a stored scan index for fast reads.
| Field Summary | |
|---|---|
protected long |
chrogramIndex
|
protected java.lang.String |
fileName
The file we are in charge of reading |
protected boolean |
isML
|
protected boolean |
isXML
|
protected int |
maxScan
|
protected java.util.Map<java.lang.Integer,java.lang.Long> |
offsets
The indexes |
| Constructor Summary | |
|---|---|
MSXMLParser(java.lang.String fileName)
|
|
| Method Summary | |
|---|---|
int |
getMaxScanNumber()
|
int |
getScanCount()
Get the total number of scans in the mzXMLfile handled by this parser. |
long |
getScanOffset(int scanNumber)
get scan offset, scan number is 1 based. |
Scan |
rap(int scanNumber)
Read a particular scan from a MSXML file and return a generic Scan object with it's data. |
MZXMLFileInfo |
rapFileHeader()
this gives back the file header (info before scan) |
ScanHeader |
rapHeader(int scanNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String fileName
protected java.util.Map<java.lang.Integer,java.lang.Long> offsets
protected int maxScan
protected long chrogramIndex
protected boolean isXML
protected boolean isML
| Constructor Detail |
|---|
public MSXMLParser(java.lang.String fileName)
| Method Detail |
|---|
public MZXMLFileInfo rapFileHeader()
public ScanHeader rapHeader(int scanNumber)
public Scan rap(int scanNumber)
public int getScanCount()
public int getMaxScanNumber()
public long getScanOffset(int scanNumber)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||