1 17 package com.sun.syndication.io; 18 19 import com.sun.syndication.feed.synd.SyndFeed; 20 import org.jdom.Document; 21 22 import java.io.File ; 23 import java.io.IOException ; 24 import java.io.Writer ; 25 26 35 public class SyndFeedOutput { 36 private WireFeedOutput _feedOutput; 37 38 43 public SyndFeedOutput() { 44 _feedOutput = new WireFeedOutput(); 45 } 46 47 60 public String outputString(SyndFeed feed) throws FeedException { 61 return _feedOutput.outputString(feed.createWireFeed()); 62 } 63 64 78 public void output(SyndFeed feed,File file) throws IOException , FeedException { 79 _feedOutput.output(feed.createWireFeed(),file); 80 } 81 82 96 public void output(SyndFeed feed,Writer writer) throws IOException , FeedException { 97 _feedOutput.output(feed.createWireFeed(),writer); 98 } 99 100 111 public org.w3c.dom.Document outputW3CDom(SyndFeed feed) throws FeedException { 112 return _feedOutput.outputW3CDom(feed.createWireFeed()); 113 } 114 115 126 public Document outputJDom(SyndFeed feed) throws FeedException { 127 return _feedOutput.outputJDom(feed.createWireFeed()); 128 } 129 130 } 131 | Popular Tags |