hep.aida.ref.xml
Class AidaWBXMLParser
java.lang.Object
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.
AidaWBXMLParser
public AidaWBXMLParser(AidaBinaryHandler handler)
- Creates a parser instance.
- Parameters:
handler - handler interface implementation (never nullresolver - SAX entity resolver implementation or null. It
is recommended that it could be able to resolve at least the
DTD.
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