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.Parser
handler
- the error handlerpublic void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver
in interface org.xml.sax.Parser
resolver
- the entity resolverpublic void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler
in interface org.xml.sax.Parser
handler
- the document handlerpublic void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler
in interface org.xml.sax.Parser
handler
- the dtd handlerpublic void setLocale(java.util.Locale locale)
setLocale
in interface org.xml.sax.Parser
locale
- localepublic void parse(org.xml.sax.InputSource source) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.Parser
source
- the source to parse fromjava.io.IOException
org.xml.sax.SAXException
public void parse(java.lang.String source) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.Parser
url
- the source url to parse fromjava.io.IOException
org.xml.sax.SAXException