org.milyn.delivery.java
Class XStreamXMLReader
java.lang.Object
org.milyn.delivery.java.XStreamXMLReader
- All Implemented Interfaces:
- ContentHandler, JavaXMLReader, SmooksXMLReader, XMLReader
public class XStreamXMLReader
- extends Object
- implements JavaXMLReader
XStream based JavaXMLReader.
This is the default Java XMLReader for Smooks.
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XStreamXMLReader
public XStreamXMLReader()
setSourceObjects
public void setSourceObjects(List<Object> sourceObjects)
throws SmooksConfigurationException
- Description copied from interface:
JavaXMLReader
- Set the list of Source Java objects to be used to generate events on the
ContentHandler set on this XMLReader.
- Specified by:
setSourceObjects in interface JavaXMLReader
- Parameters:
sourceObjects - Java source Object list.
- Throws:
SmooksConfigurationException - Unable to set source Java Objects.
setExecutionContext
public void setExecutionContext(ExecutionContext executionContext)
- Description copied from interface:
SmooksXMLReader
- Set the Smooks
ExecutionContext on the implementing class.
- Specified by:
setExecutionContext in interface SmooksXMLReader
- Parameters:
executionContext - The Smooks ExecutionContext.
getFeature
public boolean getFeature(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getFeature in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setFeature
public void setFeature(String name,
boolean value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setFeature in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
getProperty
public Object getProperty(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getProperty in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setProperty
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setProperty in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
- Specified by:
setEntityResolver in interface XMLReader
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver in interface XMLReader
setDTDHandler
public void setDTDHandler(DTDHandler handler)
- Specified by:
setDTDHandler in interface XMLReader
getDTDHandler
public DTDHandler getDTDHandler()
- Specified by:
getDTDHandler in interface XMLReader
setContentHandler
public void setContentHandler(ContentHandler handler)
- Specified by:
setContentHandler in interface XMLReader
getContentHandler
public ContentHandler getContentHandler()
- Specified by:
getContentHandler in interface XMLReader
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
- Specified by:
setErrorHandler in interface XMLReader
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler in interface XMLReader
parse
public void parse(InputSource input)
throws IOException,
SAXException
- Specified by:
parse in interface XMLReader
- Throws:
IOException
SAXException
parse
public void parse(String systemId)
throws IOException,
SAXException
- Specified by:
parse in interface XMLReader
- Throws:
IOException
SAXException
Copyright © 2008. All Rights Reserved.