diff options
author | Sven Gothel <[email protected]> | 2019-05-15 01:46:50 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-05-15 01:46:50 +0200 |
commit | e5155b34e7e9f99ccb30ee7923ec9c0562cebc55 (patch) | |
tree | 5d0ba95177abca8db98d509f6c737dd7260ab224 /src/main/java/com/jogamp/hungryharry | |
parent | 239c5694cb08d72c042b8cfaa2609200e87e94d8 (diff) |
Updateing dependencies: rometools 1.12, freemarker 2.3.28, java compiler 1.8
Diffstat (limited to 'src/main/java/com/jogamp/hungryharry')
-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>(); |