public class XStreamXMLReader extends Object implements JavaXMLReader
JavaXMLReader
.
This is the default Java XMLReader
for Smooks.Constructor and Description |
---|
XStreamXMLReader() |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
getContentHandler() |
DTDHandler |
getDTDHandler() |
EntityResolver |
getEntityResolver() |
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name) |
Object |
getProperty(String name) |
void |
intialize() |
void |
parse(InputSource input) |
void |
parse(String systemId) |
void |
setContentHandler(ContentHandler handler) |
void |
setDTDHandler(DTDHandler handler) |
void |
setEntityResolver(EntityResolver resolver) |
void |
setErrorHandler(ErrorHandler handler) |
void |
setExecutionContext(ExecutionContext executionContext)
Set the Smooks
ExecutionContext 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 the
ContentHandler set on this XMLReader . |
@Initialize public void intialize()
public void setSourceObjects(List<Object> sourceObjects) throws SmooksConfigurationException
JavaXMLReader
ContentHandler
set on this XMLReader
.setSourceObjects
in interface JavaXMLReader
sourceObjects
- Java source Object list.SmooksConfigurationException
- Unable to set source Java Objects.public void setExecutionContext(ExecutionContext executionContext)
SmooksXMLReader
ExecutionContext
on the implementing class.setExecutionContext
in interface SmooksXMLReader
executionContext
- The Smooks ExecutionContext
.public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setEntityResolver(EntityResolver resolver)
setEntityResolver
in interface XMLReader
public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
public void setDTDHandler(DTDHandler handler)
setDTDHandler
in interface XMLReader
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
public void setContentHandler(ContentHandler handler)
setContentHandler
in interface XMLReader
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
public void setErrorHandler(ErrorHandler handler)
setErrorHandler
in interface XMLReader
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
public void parse(InputSource input) throws IOException, SAXException
parse
in interface XMLReader
IOException
SAXException
public void parse(String systemId) throws IOException, SAXException
parse
in interface XMLReader
IOException
SAXException
Copyright © 2020. All rights reserved.