org.springframework.util.xml
Class AbstractXMLReader
java.lang.Object
org.springframework.util.xml.AbstractXMLReader
- All Implemented Interfaces:
- org.xml.sax.XMLReader
- Direct Known Subclasses:
- AbstractStaxXMLReader
abstract class AbstractXMLReader
- extends java.lang.Object
- implements org.xml.sax.XMLReader
Abstract base class for SAX XMLReader
implementations. Contains properties as defined in XMLReader
, and does not recognize any features.
- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
setContentHandler(org.xml.sax.ContentHandler)
,
setDTDHandler(org.xml.sax.DTDHandler)
,
setEntityResolver(org.xml.sax.EntityResolver)
,
setErrorHandler(org.xml.sax.ErrorHandler)
Method Summary |
org.xml.sax.ContentHandler |
getContentHandler()
|
org.xml.sax.DTDHandler |
getDTDHandler()
|
org.xml.sax.EntityResolver |
getEntityResolver()
|
org.xml.sax.ErrorHandler |
getErrorHandler()
|
boolean |
getFeature(java.lang.String name)
Throws a SAXNotRecognizedException exception. |
protected org.xml.sax.ext.LexicalHandler |
getLexicalHandler()
|
java.lang.Object |
getProperty(java.lang.String name)
Throws a SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
void |
setContentHandler(org.xml.sax.ContentHandler contentHandler)
|
void |
setDTDHandler(org.xml.sax.DTDHandler dtdHandler)
|
void |
setEntityResolver(org.xml.sax.EntityResolver entityResolver)
|
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
|
void |
setFeature(java.lang.String name,
boolean value)
Throws a SAXNotRecognizedException exception. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Throws a SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.XMLReader |
parse, parse |
dtdHandler
private org.xml.sax.DTDHandler dtdHandler
contentHandler
private org.xml.sax.ContentHandler contentHandler
entityResolver
private org.xml.sax.EntityResolver entityResolver
errorHandler
private org.xml.sax.ErrorHandler errorHandler
lexicalHandler
private org.xml.sax.ext.LexicalHandler lexicalHandler
AbstractXMLReader
AbstractXMLReader()
getContentHandler
public org.xml.sax.ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interface org.xml.sax.XMLReader
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler contentHandler)
- Specified by:
setContentHandler
in interface org.xml.sax.XMLReader
setDTDHandler
public void setDTDHandler(org.xml.sax.DTDHandler dtdHandler)
- Specified by:
setDTDHandler
in interface org.xml.sax.XMLReader
getDTDHandler
public org.xml.sax.DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interface org.xml.sax.XMLReader
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interface org.xml.sax.XMLReader
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
- Specified by:
setEntityResolver
in interface org.xml.sax.XMLReader
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interface org.xml.sax.XMLReader
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
- Specified by:
setErrorHandler
in interface org.xml.sax.XMLReader
getLexicalHandler
protected org.xml.sax.ext.LexicalHandler getLexicalHandler()
getFeature
public boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Throws a
SAXNotRecognizedException
exception.
- Specified by:
getFeature
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
- always
org.xml.sax.SAXNotSupportedException
setFeature
public void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Throws a
SAXNotRecognizedException
exception.
- Specified by:
setFeature
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
- always
org.xml.sax.SAXNotSupportedException
getProperty
public java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Throws a
SAXNotRecognizedException
exception when the given property does not signify a lexical
handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler
.
- Specified by:
getProperty
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Throws a
SAXNotRecognizedException
exception when the given property does not signify a lexical
handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler
.
- Specified by:
setProperty
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException