net.n3.nanoxml.sax
public class SAXParser extends Object implements Parser
Version: $Name: RELEASE_2_2_1 $, $Revision: 1.5 $
| Constructor Summary | |
|---|---|
| SAXParser()
Creates the SAX parser. | |
| Method Summary | |
|---|---|
| protected void | finalize()
Cleans up the object when it's destroyed. |
| void | parse(InputSource source)
Parse an XML document.
|
| void | parse(String systemId)
Parse an XML document from a system identifier (URI).
|
| void | setDocumentHandler(DocumentHandler handler)
Allows an application to register a document event handler.
|
| void | setDTDHandler(DTDHandler handler)
Sets the DTD handler. |
| void | setEntityResolver(EntityResolver resolver)
Sets the entity resolver.
|
| void | setErrorHandler(ErrorHandler handler)
Allow an application to register an error event handler.
|
| void | setLocale(Locale locale)
Sets the locale. |
Parameters: source the input source
Parameters: systemId the system ID
Parameters: handler the document handler
Parameters: handler the DTD handler
Parameters: resolver the entity resolver
Parameters: handler the error handler
Parameters: locale the locale
Throws: org.xml.sax.SAXException
if locale is null or the associated
language is not english.