org.systemsbiology.jrap
Class SAX2HeaderHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.systemsbiology.jrap.SAX2HeaderHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class SAX2HeaderHandler
extends org.xml.sax.helpers.DefaultHandler

SAX2HeaderHandler is a SAX2 XML handler that parses the first part of an mzXML file to extract information that comes before the scans. This data is stored in an instance of MZXMLFileInfo.

Author:
M. Vogelzang

Field Summary
protected  boolean dataProcessingMode
           
protected  java.util.ArrayList dataProcessingSoftware
           
protected  MZXMLFileInfo info
           
protected  boolean msInstrumentMode
           
protected  java.util.ArrayList parentFiles
           
static java.lang.String SUCCESSFUL_COMPLETION_MESSAGE
           
 
Constructor Summary
SAX2HeaderHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
protected  void finish()
           
 MZXMLFileInfo getInfo()
           
protected  void parseDataProcessing(org.xml.sax.Attributes attributes)
           
protected  void parseMSOperator(org.xml.sax.Attributes attributes)
           
protected  SoftwareInfo parseSoftware(org.xml.sax.Attributes attributes)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESSFUL_COMPLETION_MESSAGE

public static final java.lang.String SUCCESSFUL_COMPLETION_MESSAGE
See Also:
Constant Field Values

info

protected MZXMLFileInfo info

parentFiles

protected java.util.ArrayList parentFiles

dataProcessingSoftware

protected java.util.ArrayList dataProcessingSoftware

msInstrumentMode

protected boolean msInstrumentMode

dataProcessingMode

protected boolean dataProcessingMode
Constructor Detail

SAX2HeaderHandler

public SAX2HeaderHandler()
Method Detail

finish

protected void finish()

getInfo

public MZXMLFileInfo getInfo()

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

parseMSOperator

protected void parseMSOperator(org.xml.sax.Attributes attributes)

parseSoftware

protected SoftwareInfo parseSoftware(org.xml.sax.Attributes attributes)

parseDataProcessing

protected void parseDataProcessing(org.xml.sax.Attributes attributes)


SASHIMI Project