|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.dalsemi.onewire.application.tag.SAXParser
A SAX parser.
This class encapsulates the underlying parser implementation. We support only the SAX1 interface for now.
Specify the SAXParser implementation by adding the property
SAXParser.ClassName to the onewire.properties file with the
fully qualified classname of an implementation of
org.xml.sax.Parser. The default classname used is
for nanoxml's parser: nanoxml.sax.SAXParser.
| Constructor Summary | |
SAXParser()
Construct the SAX parser. |
|
| Method Summary | |
void |
parse(org.xml.sax.InputSource inputSource)
Parse an XML document. |
void |
parse(String systemID)
Parse an XML document specified by system identifier or URL. |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Register a document event handler. |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Register a DTD event handler. |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Register a custom entity resolver. |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
Register an error event handler. |
void |
setLocale(Locale locale)
Set the locale for errors and warnings. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SAXParser()
| Method Detail |
public void setLocale(Locale locale)
throws org.xml.sax.SAXException
setLocale in interface org.xml.sax.Parserlocale - The locale to use.org.xml.sax.SAXException - If the locale is not supported.public void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.Parserresolver - The entity resolver to use.public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler in interface org.xml.sax.Parserhandler - The DTD handler to use.public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler in interface org.xml.sax.Parserhandler - The document handler to use.public void setErrorHandler(org.xml.sax.ErrorHandler handler)
fatalError
are ignored. A fatalError thorws a SAXException.setErrorHandler in interface org.xml.sax.Parserhandler - The error handler to use.
public void parse(org.xml.sax.InputSource inputSource)
throws org.xml.sax.SAXException,
IOException
parse in interface org.xml.sax.Parsersource - Source of the document to parse.inputSource - org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.IOException - If an I/O error occurred while reading the document.
public void parse(String systemID)
throws org.xml.sax.SAXException,
IOException
parse in interface org.xml.sax.ParsersystemID - The system ID or URL of the document to parse.org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.IOException - If an I/O error occurred while reading the document.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||