diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/jogamp/hungryharry/FeedAggregator.java | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/src/main/java/com/jogamp/hungryharry/FeedAggregator.java b/src/main/java/com/jogamp/hungryharry/FeedAggregator.java index cc009f2..12f87f8 100644 --- a/src/main/java/com/jogamp/hungryharry/FeedAggregator.java +++ b/src/main/java/com/jogamp/hungryharry/FeedAggregator.java @@ -5,10 +5,25 @@ package com.jogamp.hungryharry; import com.jogamp.hungryharry.Config.Feed; import com.jogamp.hungryharry.Config.Planet; -import com.sun.syndication.feed.synd.SyndContent; -import com.sun.syndication.io.SyndFeedOutput; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.io.FeedException; + +import com.rometools.rome.feed.synd.SyndContent; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.feed.synd.SyndFeedImpl; +import com.rometools.rome.io.FeedException; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.SyndFeedOutput; +import com.rometools.rome.io.XmlReader; +import com.rometools.fetcher.FeedFetcher; +import com.rometools.fetcher.impl.FeedFetcherCache; +import com.rometools.fetcher.impl.HashMapFeedInfoCache; +import com.rometools.fetcher.impl.HttpURLFeedFetcher; + +import freemarker.template.Configuration; +import freemarker.template.ObjectWrapper; +import freemarker.template.Template; +import freemarker.template.TemplateException; + import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; @@ -16,16 +31,6 @@ import java.net.URL; import java.util.ArrayList; import java.util.List; -import com.sun.syndication.feed.synd.SyndFeedImpl; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.fetcher.FeedFetcher; -import com.sun.syndication.fetcher.impl.FeedFetcherCache; -import com.sun.syndication.fetcher.impl.HashMapFeedInfoCache; -import com.sun.syndication.fetcher.impl.HttpURLFeedFetcher; -import freemarker.template.Configuration; -import freemarker.template.ObjectWrapper; -import freemarker.template.Template; -import freemarker.template.TemplateException; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; @@ -229,6 +234,7 @@ public class FeedAggregator { FeedFetcherCache feedInfoCache = HashMapFeedInfoCache.getInstance(); FeedFetcher feedFetcher = new HttpURLFeedFetcher(feedInfoCache); + // trust foreign doctype? feedFetcher.setAllowDoctypes(true); List<SyndEntry> collectedEntries = new ArrayList<SyndEntry>(); Set<String> ids = new HashSet<String>(); |