Class DelegateReader
- java.lang.Object
-
- org.smooks.engine.resource.reader.DelegateReader
-
- All Implemented Interfaces:
ContentHandler
,SmooksXMLReader
,XMLReader
public class DelegateReader extends Object implements SmooksXMLReader
-
-
Constructor Summary
Constructors Constructor Description DelegateReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentHandler
getContentHandler()
DTDHandler
getDTDHandler()
EntityResolver
getEntityResolver()
ErrorHandler
getErrorHandler()
boolean
getFeature(String name)
Object
getProperty(String name)
void
parse(String systemId)
void
parse(InputSource inputSource)
void
postConstruct()
void
setContentHandler(ContentHandler contentHandler)
void
setDTDHandler(DTDHandler dtdHandler)
void
setEntityResolver(EntityResolver resolver)
void
setErrorHandler(ErrorHandler errorHandler)
void
setExecutionContext(ExecutionContext executionContext)
Set the SmooksExecutionContext
on the implementing class.void
setFeature(String name, boolean value)
void
setProperty(String name, Object value)
-
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct()
-
setExecutionContext
public void setExecutionContext(ExecutionContext executionContext)
Description copied from interface:SmooksXMLReader
Set the SmooksExecutionContext
on the implementing class.- Specified by:
setExecutionContext
in interfaceSmooksXMLReader
- Parameters:
executionContext
- The SmooksExecutionContext
.
-
getFeature
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
getFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
setFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
getProperty
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
getProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
setProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
- Specified by:
setEntityResolver
in interfaceXMLReader
-
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interfaceXMLReader
-
setDTDHandler
public void setDTDHandler(DTDHandler dtdHandler)
- Specified by:
setDTDHandler
in interfaceXMLReader
-
getDTDHandler
public DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interfaceXMLReader
-
setContentHandler
public void setContentHandler(ContentHandler contentHandler)
- Specified by:
setContentHandler
in interfaceXMLReader
-
getContentHandler
public ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interfaceXMLReader
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Specified by:
setErrorHandler
in interfaceXMLReader
-
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interfaceXMLReader
-
parse
public void parse(InputSource inputSource) throws IOException, SAXException
- Specified by:
parse
in interfaceXMLReader
- Throws:
IOException
SAXException
-
parse
public void parse(String systemId) throws IOException, SAXException
- Specified by:
parse
in interfaceXMLReader
- Throws:
IOException
SAXException
-
-