|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object peakml.io.ParseResult
public class ParseResult
Central class for collecting the data and meta-data of a file containing mass spectrometry data. This is used as a return type for the parse functions.
Field Summary | |
---|---|
Header |
header
The header information from the file. |
Measurement |
measurement
The data associated to the measurement. |
Constructor Summary | |
---|---|
ParseResult()
Standard constructor, which initializes the members to null. |
|
ParseResult(Header header,
Measurement measurement)
Constructs a new ParseResult with the given header and measurement. |
Method Summary | |
---|---|
Header |
getHeader()
Returns the header instance. |
Measurement |
getMeasurement()
Returns the measurement instance. |
static ParseResult |
parse(java.lang.String filename)
Calls the correct parse function based on the filename extension. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Header header
public Measurement measurement
Constructor Detail |
---|
public ParseResult()
public ParseResult(Header header, Measurement measurement)
ParseResult
with the given header and measurement.
header
- The header information from the file.measurement
- The data associated to the measurement.Method Detail |
---|
public Header getHeader()
public Measurement getMeasurement()
public static ParseResult parse(java.lang.String filename) throws java.io.IOException, domsax.XmlParserException, IXRawfileException
ParseResult
, which needs to be examined further to determine
its contents.
filename
- The name of the file to parse.
java.io.IOException
- Thrown on an I/O error.
domsax.XmlParserException
- Thrown on a XML parse exception.
IXRawfileException
- Thrown on an exception generated by the IXRawfile
implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |