|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.xml.AidaParser
The class reads XML documents according to specified DTD and translates all related events into AidaHandler events.
Usage sample:
AidaParser parser = new AidaParser(...); parser.parse(new InputSource("..."));
Warning: the class is machine generated. DO NOT MODIFY
Constructor Summary | |
AidaParser(AidaHandler handler,
EntityResolver resolver)
Creates a parser instance. |
Method Summary | |
void |
characters(char[] chars,
int start,
int len)
This SAX interface method is implemented by the parser. |
void |
endDocument()
This SAX interface method is implemented by the parser. |
void |
endElement(String ns,
String name,
String qname)
This SAX interface method is implemented by the parser. |
void |
endPrefixMapping(String prefix)
This SAX interface method is implemented by the parser. |
protected ErrorHandler |
getDefaultErrorHandler()
Creates default error handler used by this parser. |
void |
ignorableWhitespace(char[] chars,
int start,
int len)
This SAX interface method is implemented by the parser. |
void |
parse(InputSource input)
The recognizer entry method taking an InputSource. |
static void |
parse(InputSource input,
AidaHandler handler)
The recognizer entry method taking an Inputsource. |
void |
parse(URL url)
The recognizer entry method taking a URL. |
static void |
parse(URL url,
AidaHandler handler)
The recognizer entry method taking a URL. |
void |
processingInstruction(String target,
String data)
This SAX interface method is implemented by the parser. |
void |
setDocumentLocator(Locator locator)
This SAX interface method is implemented by the parser. |
void |
setValidate(boolean validate)
|
void |
skippedEntity(String name)
This SAX interface method is implemented by the parser. |
void |
startDocument()
This SAX interface method is implemented by the parser. |
void |
startElement(String ns,
String name,
String qname,
Attributes attrs)
This SAX interface method is implemented by the parser. |
void |
startPrefixMapping(String prefix,
String uri)
This SAX interface method is implemented by the parser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AidaParser(AidaHandler handler, EntityResolver resolver)
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 |
public final void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public final void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public final void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public final void startElement(String ns, String name, String qname, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
SAXException
public final void endElement(String ns, String name, String qname) throws SAXException
endElement
in interface ContentHandler
SAXException
public final void characters(char[] chars, int start, int len) throws SAXException
characters
in interface ContentHandler
SAXException
public final void ignorableWhitespace(char[] chars, int start, int len) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public final void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public final void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public final void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public final void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void parse(InputSource input) throws SAXException, ParserConfigurationException, IOException
input
- InputSource to be parsed.
IOException
- on I/O error.
SAXException
- propagated exception thrown by a DocumentHandler.
ParserConfigurationException
- a parser satisfining requested configuration can not be created.
javax.xml.parsers.FactoryConfigurationRrror
- if the implementation can not be instantiated.public void parse(URL url) throws SAXException, ParserConfigurationException, IOException
url
- URL source to be parsed.
IOException
- on I/O error.
SAXException
- propagated exception thrown by a DocumentHandler.
ParserConfigurationException
- a parser satisfining requested configuration can not be created.
javax.xml.parsers.FactoryConfigurationRrror
- if the implementation can not be instantiated.public static void parse(InputSource input, AidaHandler handler) throws SAXException, ParserConfigurationException, IOException
input
- InputSource to be parsed.
IOException
- on I/O error.
SAXException
- propagated exception thrown by a DocumentHandler.
ParserConfigurationException
- a parser satisfining requested configuration can not be created.
javax.xml.parsers.FactoryConfigurationRrror
- if the implementation can not be instantiated.public static void parse(URL url, AidaHandler handler) throws SAXException, ParserConfigurationException, IOException
url
- URL source to be parsed.
IOException
- on I/O error.
SAXException
- propagated exception thrown by a DocumentHandler.
ParserConfigurationException
- a parser satisfining requested configuration can not be created.
javax.xml.parsers.FactoryConfigurationRrror
- if the implementation can not be instantiated.public void setValidate(boolean validate)
protected ErrorHandler getDefaultErrorHandler()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |