Class XStreamXMLReader
- java.lang.Object
-
- org.smooks.engine.resource.reader.XStreamXMLReader
-
- All Implemented Interfaces:
ContentHandler
,JavaXMLReader
,SmooksXMLReader
,XMLReader
public class XStreamXMLReader extends Object implements JavaXMLReader
XStream basedJavaXMLReader
. This is the default JavaXMLReader
for Smooks.- Author:
- tom.fennelly@gmail.com
-
-
Constructor Summary
Constructors Constructor Description XStreamXMLReader()
-
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
postConstruct()
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)
void
setSourceObjects(List<Object> sourceObjects)
Set the list of Source Java objects to be used to generate events on theContentHandler
set on thisXMLReader
.
-
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct()
-
setSourceObjects
public void setSourceObjects(List<Object> sourceObjects) throws SmooksConfigException
Description copied from interface:JavaXMLReader
Set the list of Source Java objects to be used to generate events on theContentHandler
set on thisXMLReader
.- Specified by:
setSourceObjects
in interfaceJavaXMLReader
- Parameters:
sourceObjects
- Java source Object list.- Throws:
SmooksConfigException
- Unable to set source Java Objects.
-
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
-
setContentHandler
public void setContentHandler(ContentHandler handler)
- Specified by:
setContentHandler
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(InputSource input) 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
-
-