use of com.sun.syndication.io.SyndFeedOutput in project opennms by OpenNMS.
the class AbstractFeed method render.
/**
* <p>render</p>
*
* @return a {@link java.lang.String} object.
*/
@Override
public final String render() {
SyndFeed feed = this.getFeed();
feed.setFeedType(this.getFeedType());
feed.setAuthor("OpenNMS");
SyndFeedOutput output = new SyndFeedOutput();
try {
StringWriter writer = new StringWriter();
output.output(feed, writer);
return writer.toString();
} catch (Throwable e) {
LOG.warn("unable to render feed", e);
return "";
}
}
Aggregations