hep.aida.ref.xml
Class AidaWBXMLParser

java.lang.Object
  extended by hep.aida.ref.xml.AidaWBXMLParser
All Implemented Interfaces:
org.freehep.wbxml.ContentHandler

public class AidaWBXMLParser
extends Object
implements org.freehep.wbxml.ContentHandler

This class reads Binary XML.


Constructor Summary
AidaWBXMLParser(AidaBinaryHandler handler)
          Creates a parser instance.
 
Method Summary
 void characters(char[] chars, int start, int len)
           
 void endDocument()
           
 void endElement(int tagID)
          This SAX interface method is implemented by the parser.
static void main(String[] args)
           
 void parse(InputStream in)
           
 void startDocument()
           
 void startElement(int tagID, org.freehep.wbxml.Attributes attrs, boolean empty)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AidaWBXMLParser

public AidaWBXMLParser(AidaBinaryHandler handler)
Creates a parser instance.

Parameters:
handler - handler interface implementation (never null
resolver - SAX entity resolver implementation or null. It is recommended that it could be able to resolve at least the DTD.
Method Detail

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface org.freehep.wbxml.ContentHandler
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface org.freehep.wbxml.ContentHandler
Throws:
SAXException

startElement

public void startElement(int tagID,
                         org.freehep.wbxml.Attributes attrs,
                         boolean empty)
                  throws SAXException
Specified by:
startElement in interface org.freehep.wbxml.ContentHandler
Throws:
SAXException

endElement

public void endElement(int tagID)
                throws SAXException
This SAX interface method is implemented by the parser.

Specified by:
endElement in interface org.freehep.wbxml.ContentHandler
Throws:
SAXException

characters

public void characters(char[] chars,
                       int start,
                       int len)
                throws SAXException
Specified by:
characters in interface org.freehep.wbxml.ContentHandler
Throws:
SAXException

parse

public void parse(InputStream in)
           throws SAXException,
                  IOException
Throws:
SAXException
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


jHepWork 3.2 © jWork.org