public class FeedParser extends Object
The output is totally dependent on ROME classes. There could be an abstraction layer but then it wouldn't be as 'simple' which is what this portlet aims to be.
| Constructor and Description |
|---|
FeedParser() |
| Modifier and Type | Method and Description |
|---|---|
com.sun.syndication.feed.synd.SyndFeed |
parseFeed(String feedUrl)
Parse the given feed url and return the raw type
|
static Map<String,Attachment> |
parseFeedEnclosures(com.sun.syndication.feed.synd.SyndFeed feed)
Parses the entries contained in an RSS feed, extracts the enclosures, converts them to an
Attachment
adds them to the map with the entry uri as key. |
public com.sun.syndication.feed.synd.SyndFeed parseFeed(String feedUrl)
feedUrl - public static Map<String,Attachment> parseFeedEnclosures(com.sun.syndication.feed.synd.SyndFeed feed)
Attachment
adds them to the map with the entry uri as key.
The RSS spec says there is only one enclosure per item so this is what we work with. We don't actually check this so it's possible that if you have more than one enclosure attached to an item that only the latest one will be presented in the end.
feed - Copyright © 2011-2013 Division of Information, Australian National University. All Rights Reserved.