public class XMLReaderImpl
extends java.lang.Object
implements org.xml.sax.XMLReader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XMLNS |
Constructor and Description |
---|
XMLReaderImpl() |
Modifier and Type | Method and Description |
---|---|
org.xml.sax.ContentHandler |
getContentHandler()
Gets the SAX content handler
|
org.xml.sax.DTDHandler |
getDTDHandler()
Gets the SAX DTD handler
|
org.xml.sax.EntityResolver |
getEntityResolver()
Gets the SAX entityResolver.
|
org.xml.sax.ErrorHandler |
getErrorHandler()
Gets the SAX errorHandler.
|
boolean |
getFeature(java.lang.String name)
Returns a SAX feature.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns a SAX property.
|
void |
parse(org.xml.sax.InputSource source)
parses the input source.
|
void |
parse(java.lang.String systemId)
Parses the file at the given string
|
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Sets the SAX content 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 |
setFeature(java.lang.String name,
boolean value)
Sets a SAX feature.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a SAX property.
|
public static final java.lang.String XMLNS
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
All XMLReaders are required to recognize the http://xml.org/sax/features/namespaces and the http://xml.org/sax/features/namespace-prefixes feature names.
getFeature
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setProperty
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getProperty
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver
in interface org.xml.sax.XMLReader
resolver
- the entity resolverpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver
in interface org.xml.sax.XMLReader
public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler
in interface org.xml.sax.XMLReader
handler
- the dtd handlerpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler
in interface org.xml.sax.XMLReader
public void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler
in interface org.xml.sax.XMLReader
handler
- the content handlerpublic org.xml.sax.ContentHandler getContentHandler()
getContentHandler
in interface org.xml.sax.XMLReader
handler
- the content handlerpublic void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler
in interface org.xml.sax.XMLReader
handler
- the error handlerpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler
in interface org.xml.sax.XMLReader
handler
- the error handlerpublic void parse(org.xml.sax.InputSource source) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
source
- the source to parse fromjava.io.IOException
org.xml.sax.SAXException
public void parse(java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
url
- the source url to parse fromjava.io.IOException
org.xml.sax.SAXException