public class XMLParserImpl
extends java.lang.Object
implements org.xml.sax.Parser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XMLNS |
| Constructor and Description |
|---|
XMLParserImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(org.xml.sax.InputSource source)
parses the input source.
|
void |
parse(java.lang.String source)
parses the file at the given string
|
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets the SAX document handler
|
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Sets the SAX DTD handler
|
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Sets the SAX entityResolver.
|
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
Sets the SAX errorHandler.
|
void |
setLocale(java.util.Locale locale)
Sets the SAX locale
|
public static final java.lang.String XMLNS
public void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler in interface org.xml.sax.Parserhandler - the error handlerpublic void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.Parserresolver - the entity resolverpublic void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler in interface org.xml.sax.Parserhandler - the document handlerpublic void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler in interface org.xml.sax.Parserhandler - the dtd handlerpublic void setLocale(java.util.Locale locale)
setLocale in interface org.xml.sax.Parserlocale - localepublic void parse(org.xml.sax.InputSource source)
throws java.io.IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.Parsersource - the source to parse fromjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic void parse(java.lang.String source)
throws java.io.IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.Parserurl - the source url to parse fromjava.io.IOExceptionorg.xml.sax.SAXException