org.apache.camel.groovy.dataformat
Class XmlSlurperDataFormat

java.lang.Object
  extended by org.apache.camel.groovy.dataformat.AbstractXmlDataFormat
      extended by org.apache.camel.groovy.dataformat.XmlSlurperDataFormat
All Implemented Interfaces:
org.apache.camel.spi.DataFormat

public class XmlSlurperDataFormat
extends AbstractXmlDataFormat

DataFormat for using groovy.util.XmlSlurper as parser for XML data


Constructor Summary
XmlSlurperDataFormat()
           
XmlSlurperDataFormat(boolean namespaceAware)
           
 
Method Summary
 void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream)
           
 Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream)
           
 
Methods inherited from class org.apache.camel.groovy.dataformat.AbstractXmlDataFormat
getErrorHandler, isKeepWhitespace, isNamespaceAware, newSaxParser, setKeepWhitespace, setNamespaceAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSlurperDataFormat

public XmlSlurperDataFormat()

XmlSlurperDataFormat

public XmlSlurperDataFormat(boolean namespaceAware)
Method Detail

marshal

public void marshal(org.apache.camel.Exchange exchange,
                    Object graph,
                    OutputStream stream)
             throws Exception
Throws:
Exception

unmarshal

public Object unmarshal(org.apache.camel.Exchange exchange,
                        InputStream stream)
                 throws Exception
Throws:
Exception


Apache Camel