|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.n3.nanoxml.sax.SAXParser
public class 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(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. |
| 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 Throwable
finalize in class ObjectThrowable
public void setLocale(Locale locale)
throws SAXException
setLocale in interface Parserlocale - the locale
SAXException - if locale is null or the associated
language is not english.public void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface Parserresolver - the entity resolverpublic void setDTDHandler(DTDHandler handler)
setDTDHandler in interface Parserhandler - the DTD handlerpublic void setDocumentHandler(DocumentHandler handler)
setDocumentHandler in interface Parserhandler - the document handlerpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface Parserhandler - the error handler
public void parse(InputSource source)
throws SAXException,
IOException
parse in interface Parsersource - the input source
SAXException
IOException
public void parse(String systemId)
throws SAXException,
IOException
parse in interface ParsersystemId - the system ID
SAXException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||