fable.io
Class RSSManager

java.lang.Object
  extended by fable.io.RSSManager

public class RSSManager
extends java.lang.Object

RSS Manager is a class that reads RSS files in Atom 0.3, RSS 1.0 or RSS 2.0 formats, or exports PseudoFeeds into RSS format

Author:
Christopher Moh

Method Summary
static boolean exportPseudoFeed(PseudoFeed srcFeed, java.lang.String fileName)
          Exports a PseudoFeed to an RSS document in the RSS 1.0 format
static Feed readRSS(java.net.URL url)
          Creates a feed from a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readRSS

public static Feed readRSS(java.net.URL url)
Creates a feed from a URL.

Parameters:
url - The url to read from
Returns:
A feed represented by this url, or null if feed cannot be created.
Requires:
url != null

exportPseudoFeed

public static boolean exportPseudoFeed(PseudoFeed srcFeed,
                                       java.lang.String fileName)
Exports a PseudoFeed to an RSS document in the RSS 1.0 format

Parameters:
srcFeed - PseudoFeed to export to
fileName - The file to export as
Returns:
true if the file is written successfully, false if not
Requires:
srcFeed, fileName != null