|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.n3.nanoxml.sax.SAXParser
SAXParser implements the SAX Parser interface. It is the frontend to SAX for the NanoXML parser.
Constructor Summary | |
SAXParser()
Creates the SAX parser. |
Method Summary | |
protected void |
finalize()
Cleans up the object when it's destroyed. |
void |
parse(org.xml.sax.InputSource source)
Parse an XML document. |
void |
parse(java.lang.String systemId)
Parse an XML document from a system identifier (URI). |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Allows an application to register a document event handler. |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Sets the DTD handler. |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Sets the entity resolver. |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
Allow an application to register an error event handler. |
void |
setLocale(java.util.Locale locale)
Sets the locale. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAXParser()
Method Detail |
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void setLocale(java.util.Locale locale) throws org.xml.sax.SAXException
setLocale
in interface org.xml.sax.Parser
locale
- the locale
org.xml.sax.SAXException
- if locale
is null
or the associated
language is not english.public void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver
in interface org.xml.sax.Parser
resolver
- the entity resolverpublic void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler
in interface org.xml.sax.Parser
handler
- the DTD handlerpublic void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler
in interface org.xml.sax.Parser
handler
- the document handlerpublic void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler
in interface org.xml.sax.Parser
handler
- the error handlerpublic void parse(org.xml.sax.InputSource source) throws org.xml.sax.SAXException, java.io.IOException
parse
in interface org.xml.sax.Parser
source
- the input source
org.xml.sax.SAXException
java.io.IOException
public void parse(java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
parse
in interface org.xml.sax.Parser
systemId
- the system ID
org.xml.sax.SAXException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |