public abstract class XmlBasedRunHeaderParser extends Object
MZXMLRunHeaderParser and MZMLRunHeaderParser.| Constructor and Description |
|---|
XmlBasedRunHeaderParser() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract <T> T |
convertJAXBObjectToDomain(Class<T> clazz,
Object unmarshalled) |
abstract AbstractFile |
getAbstractFile() |
protected abstract InputStream |
getRunHeaderInputStream(OffsetLength msRunLocation)
Be sure to include all the correct tags in this stream.
|
protected OffsetLength |
locateRunHeader(String firstTag,
boolean firstTagIsStart,
boolean firstTagGetStartLoc,
String lastTag,
boolean lastTagIsStart,
boolean lastTagGetStartLoc)
Reads the run header from the file, locating positions of
<firstTag> and first <lastTag> tags. |
abstract LCMSRunInfo |
parse() |
protected <T> T |
parseHeaderWithJAXB(Class<T> clazz,
OffsetLength msRunLocation) |
protected abstract InputStream getRunHeaderInputStream(OffsetLength msRunLocation) throws RunHeaderParsingException
MZXMLRunHeaderParser and MZMLRunHeaderParser.msRunLocation - RunHeaderParsingExceptionprotected abstract <T> T convertJAXBObjectToDomain(Class<T> clazz, Object unmarshalled) throws RunHeaderParsingException
RunHeaderParsingExceptionpublic abstract AbstractFile getAbstractFile()
public abstract LCMSRunInfo parse() throws RunHeaderParsingException
RunHeaderParsingExceptionprotected <T> T parseHeaderWithJAXB(Class<T> clazz, OffsetLength msRunLocation) throws RunHeaderParsingException
RunHeaderParsingExceptionprotected OffsetLength locateRunHeader(String firstTag, boolean firstTagIsStart, boolean firstTagGetStartLoc, String lastTag, boolean lastTagIsStart, boolean lastTagGetStartLoc) throws RunHeaderParsingException
<firstTag> and first <lastTag> tags.firstTag - the first tag after which run header startsfirstTagIsStart - if the opening tag is a closing tag or an opening tagfirstTagGetStartLoc - if the location of the beginning of the tag must be takenlastTag - the tag up to which we need to parse.lastTagIsStart - if the last tag is an opening tag or a closing taglastTagGetStartLoc - if the location of the beginning or end of the tag entry should be takenRunHeaderParsingExceptionCopyright © 2017. All rights reserved.