|
|||||||||
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 (which is currently MinML). We support only the SAX1 interface for now.
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.Parser
locale
- 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.Parser
resolver
- The entity resolver to use.public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler
in interface org.xml.sax.Parser
handler
- The DTD handler to use.public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler
in interface org.xml.sax.Parser
handler
- 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.Parser
handler
- 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.Parser
source
- 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.Parser
systemID
- 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 |