org.apache.camel.dataformat.rss
Class RssDataFormat
java.lang.Object
org.apache.camel.dataformat.rss.RssDataFormat
- All Implemented Interfaces:
- org.apache.camel.spi.DataFormat
public class RssDataFormat
- extends Object
- implements org.apache.camel.spi.DataFormat
RSS DataFormat
This data format supports two operations:
- marshal = from ROME SyndFeed to XML String
- unmarshal = from XML String to ROME SyndFeed
Uses ROME for RSS parsing.
Field Summary |
protected static org.slf4j.Logger |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.slf4j.Logger LOG
RssDataFormat
public RssDataFormat()
marshal
public void marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream out)
throws Exception
- Specified by:
marshal
in interface org.apache.camel.spi.DataFormat
- Throws:
Exception
unmarshal
public Object unmarshal(org.apache.camel.Exchange exchange,
InputStream in)
throws Exception
- Specified by:
unmarshal
in interface org.apache.camel.spi.DataFormat
- Throws:
Exception
Apache Camel