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.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic 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.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.XMLReaderresolver - the entity resolverpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderpublic void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler in interface org.xml.sax.XMLReaderhandler - the dtd handlerpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderpublic void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler in interface org.xml.sax.XMLReaderhandler - the content handlerpublic org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReaderhandler - the content handlerpublic void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler in interface org.xml.sax.XMLReaderhandler - the error handlerpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReaderhandler - the error handlerpublic void parse(org.xml.sax.InputSource source)
throws java.io.IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReadersource - the source to parse fromjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic void parse(java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderurl - the source url to parse fromjava.io.IOExceptionorg.xml.sax.SAXException