org.eclipse.higgins.rpps.core.impl
Class RssService

java.lang.Object
  extended byorg.eclipse.higgins.rpps.core.impl.RssService

public class RssService
extends Object

This class provides helper methods for RSS feed loading.

Author:
Sergei Yakovlev

Constructor Summary
RssService()
           
 
Method Summary
static RssService getInstance()
          Creates an RssService object.
 org.eclipse.higgins.rsse.RssFeed loadFeed(URL feedUrl, String rssDir)
          Loads RSS feed from the specified URL then merge it with local file ans save the result locally.
 FeedProperties loadFeedProperties(URL feedUrl, String rssDir)
          Gets the properties from the loaded RSS feed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssService

public RssService()
Method Detail

getInstance

public static RssService getInstance()
Creates an RssService object.

Returns:
the RssService object.

loadFeed

public org.eclipse.higgins.rsse.RssFeed loadFeed(URL feedUrl,
                                                 String rssDir)
                                          throws IOException,
                                                 org.eclipse.higgins.rsse.parser.ParseException
Loads RSS feed from the specified URL then merge it with local file ans save the result locally.

Parameters:
feedUrl - the remote URL from where RSS feed is loaded.
rssDir - the local path to where the feed is saved.
Returns:
the merged RssFeed object.
Throws:
IOException
org.eclipse.higgins.rsse.parser.ParseException

loadFeedProperties

public FeedProperties loadFeedProperties(URL feedUrl,
                                         String rssDir)
                                  throws IOException
Gets the properties from the loaded RSS feed.

Parameters:
feedUrl - the remote URL from where RSS feed is loaded.
rssDir - the local path to where the feed is saved.
Returns:
the property list from the loaded/merged RSS feed.
Throws:
IOException