Package org.springframework.xml.sax
Class AbstractXmlReader
java.lang.Object
org.springframework.xml.sax.AbstractXmlReader
- All Implemented Interfaces:
XMLReader
- Direct Known Subclasses:
SaajXmlReader
Abstract base class for SAX
XMLReader
implementations. Contains properties as defined in XMLReader
,
and does not recognize any features- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getFeature
(String name) Throws aSAXNotRecognizedException
exception.protected LexicalHandler
getProperty
(String name) Throws aSAXNotRecognizedException
exception when the given property does not signify a lexical handler.void
setContentHandler
(ContentHandler contentHandler) void
setDTDHandler
(DTDHandler dtdHandler) void
setEntityResolver
(EntityResolver entityResolver) void
setErrorHandler
(ErrorHandler errorHandler) void
setFeature
(String name, boolean value) Throws aSAXNotRecognizedException
exception.void
setProperty
(String name, Object value) Throws aSAXNotRecognizedException
exception when the given property does not signify a lexical handler.
-
Constructor Details
-
AbstractXmlReader
public AbstractXmlReader()
-
-
Method Details
-
getContentHandler
- Specified by:
getContentHandler
in interfaceXMLReader
-
setContentHandler
- Specified by:
setContentHandler
in interfaceXMLReader
-
setDTDHandler
- Specified by:
setDTDHandler
in interfaceXMLReader
-
getDTDHandler
- Specified by:
getDTDHandler
in interfaceXMLReader
-
getEntityResolver
- Specified by:
getEntityResolver
in interfaceXMLReader
-
setEntityResolver
- Specified by:
setEntityResolver
in interfaceXMLReader
-
getErrorHandler
- Specified by:
getErrorHandler
in interfaceXMLReader
-
setErrorHandler
- Specified by:
setErrorHandler
in interfaceXMLReader
-
getLexicalHandler
-
getFeature
Throws aSAXNotRecognizedException
exception.- Specified by:
getFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
- alwaysSAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException Throws aSAXNotRecognizedException
exception.- Specified by:
setFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
- alwaysSAXNotSupportedException
-
getProperty
Throws aSAXNotRecognizedException
exception when the given property does not signify a lexical handler. The property name for a lexical handler ishttp://xml.org/sax/properties/lexical-handler
.- Specified by:
getProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException Throws aSAXNotRecognizedException
exception when the given property does not signify a lexical handler. The property name for a lexical handler ishttp://xml.org/sax/properties/lexical-handler
.- Specified by:
setProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-