Class NullSourceXMLReader
- java.lang.Object
-
- org.smooks.engine.resource.reader.NullSourceXMLReader
-
- All Implemented Interfaces:
ContentHandler
,SmooksXMLReader
,XMLReader
public class NullSourceXMLReader extends Object implements SmooksXMLReader
Null Source reader. Used for null sources. Fires just a single root element ("#document" element) event that can be targeted through the "#document" selector.- Author:
- tom.fennelly@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
NULLSOURCE_DOCUMENT_ELEMENT_LOCALNAME
-
Constructor Summary
Constructors Constructor Description NullSourceXMLReader()
-
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 input)
void
setContentHandler(ContentHandler handler)
void
setDTDHandler(DTDHandler handler)
void
setEntityResolver(EntityResolver resolver)
void
setErrorHandler(ErrorHandler handler)
void
setExecutionContext(ExecutionContext executionContext)
Set the SmooksExecutionContext
on the implementing class.void
setFeature(String name, boolean value)
void
setProperty(String name, Object value)
-
-
-
Field Detail
-
NULLSOURCE_DOCUMENT_ELEMENT_LOCALNAME
public static final String NULLSOURCE_DOCUMENT_ELEMENT_LOCALNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setContentHandler
public void setContentHandler(ContentHandler handler)
- Specified by:
setContentHandler
in interfaceXMLReader
-
parse
public void parse(InputSource input) throws IOException, SAXException
- Specified by:
parse
in interfaceXMLReader
- Throws:
IOException
SAXException
-
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 handler)
- Specified by:
setDTDHandler
in interfaceXMLReader
-
getDTDHandler
public DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interfaceXMLReader
-
getContentHandler
public ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interfaceXMLReader
-
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
- Specified by:
setErrorHandler
in interfaceXMLReader
-
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interfaceXMLReader
-
parse
public void parse(String systemId) throws IOException, SAXException
- Specified by:
parse
in interfaceXMLReader
- Throws:
IOException
SAXException
-
-