org.bejug.javacareers.feeder.parser
Class RssFeedGenerator

java.lang.Object
  extended byorg.bejug.javacareers.feeder.parser.RssFeedGenerator

public class RssFeedGenerator
extends java.lang.Object

Generates a validated RSS 2.0 file

Version:
$Revision: 1.6 $ - $Date: 2005/12/20 15:36:45 $
Author:
Bavo Bruylandt (Last modified by $Author: shally $)

Field Summary
static java.lang.String RSS_VERSION
          The RSS version.
 
Constructor Summary
RssFeedGenerator()
          Constructs an RSS generator
 
Method Summary
 void addItem(org.gnu.stealthp.rsslib.RSSItem item)
          Adds an RSS item for the channel element
 void parseToRSS(java.io.Writer out)
          Generates the RSS content for current channel and elements
 void setChannel(org.gnu.stealthp.rsslib.RSSChannel channel)
          Sets the RSS channel information
 java.lang.String toString()
          a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RSS_VERSION

public static final java.lang.String RSS_VERSION
The RSS version.

See Also:
Constant Field Values
Constructor Detail

RssFeedGenerator

public RssFeedGenerator()
Constructs an RSS generator

Method Detail

addItem

public void addItem(org.gnu.stealthp.rsslib.RSSItem item)
Adds an RSS item for the channel element

Parameters:
item - RSS item with title, description and link

setChannel

public void setChannel(org.gnu.stealthp.rsslib.RSSChannel channel)
Sets the RSS channel information

Parameters:
channel - RSS channel information

parseToRSS

public void parseToRSS(java.io.Writer out)
Generates the RSS content for current channel and elements

Parameters:
out - Writer object to output to

toString

public java.lang.String toString()
a string representation of the object.

Returns:
a string representation of the object.


Copyright © 2005-2006 BeJUG. All Rights Reserved.