com.sun.syndication.io.impl
Class RSS092Parser

java.lang.Object
  extended bycom.sun.syndication.io.impl.RSS090Parser
      extended bycom.sun.syndication.io.impl.RSS091Parser
          extended bycom.sun.syndication.io.impl.RSS092Parser
All Implemented Interfaces:
FeedParser
Direct Known Subclasses:
RSS093Parser

public class RSS092Parser
extends RSS091Parser


Constructor Summary
  RSS092Parser()
           
protected RSS092Parser(java.lang.String type)
           
 
Method Summary
protected  java.lang.String getRSSVersion()
           
protected  java.util.List parseCategories(java.util.List eCats)
           
protected  AbstractFeed parseChannel(org.jdom.Element rssRoot)
          Parses the root element of an RSS document into a Channel bean.
protected  Item parseItem(org.jdom.Element rssRoot, org.jdom.Element eItem)
          Parses an item element of an RSS document looking for item information.
protected  Description parseItemDescription(org.jdom.Element rssRoot, org.jdom.Element eDesc)
           
 
Methods inherited from class com.sun.syndication.io.impl.RSS091Parser
getImage, getItems, getRSSNamespace, getTextInput, isHourFormat24, isMyType, parseImage
 
Methods inherited from class com.sun.syndication.io.impl.RSS090Parser
getType, parse, parseItems, parseTextInput, validateFeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSS092Parser

public RSS092Parser()

RSS092Parser

protected RSS092Parser(java.lang.String type)
Method Detail

getRSSVersion

protected java.lang.String getRSSVersion()
Overrides:
getRSSVersion in class RSS091Parser

parseChannel

protected AbstractFeed parseChannel(org.jdom.Element rssRoot)
Description copied from class: RSS091Parser
Parses the root element of an RSS document into a Channel bean.

It first invokes super.parseChannel and then parses and injects the following properties if present: language, pubDate, rating and copyright.

Overrides:
parseChannel in class RSS091Parser
Parameters:
rssRoot - the root element of the RSS document to parse.
Returns:
the parsed Channel bean.

parseItem

protected Item parseItem(org.jdom.Element rssRoot,
                         org.jdom.Element eItem)
Description copied from class: RSS091Parser
Parses an item element of an RSS document looking for item information.

It first invokes super.parseItem and then parses and injects the description property if present.

Overrides:
parseItem in class RSS091Parser
Parameters:
rssRoot - the root element of the RSS document in case it's needed for context.
eItem - the item element to parse.
Returns:
the parsed RSSItem bean.

parseCategories

protected java.util.List parseCategories(java.util.List eCats)

parseItemDescription

protected Description parseItemDescription(org.jdom.Element rssRoot,
                                           org.jdom.Element eDesc)
Overrides:
parseItemDescription in class RSS091Parser


Copyright © 2004 Sun Microsystems. All Rights Reserved.