com.sun.syndication.io.impl

Class RSS091UserlandParser

public class RSS091UserlandParser extends RSS090Parser

Constructor Summary
RSS091UserlandParser()
protected RSS091UserlandParser(String type)
Method Summary
protected ElementgetImage(Element rssRoot)
It looks for the 'image' elements under the 'channel' elemment.
protected ListgetItems(Element rssRoot)
It looks for the 'item' elements under the 'channel' elemment.
protected NamespacegetRSSNamespace()
protected StringgetRSSVersion()
protected ElementgetTextInput(Element rssRoot)
It looks for the 'textinput' elements under the 'channel' elemment.
protected StringgetTextInputLabel()
To be overriden by RSS 0.91 Netscape parser
protected booleanisHourFormat24(Element rssRoot)
To be overriden by RSS 0.91 Netscape and RSS 0.94
booleanisMyType(Document document)
protected WireFeedparseChannel(Element rssRoot)
Parses the root element of an RSS document into a Channel bean.
protected ImageparseImage(Element rssRoot)
Parses the root element of an RSS document looking for image information.
protected ItemparseItem(Element rssRoot, Element eItem)
Parses an item element of an RSS document looking for item information.
protected DescriptionparseItemDescription(Element rssRoot, Element eDesc)

Constructor Detail

RSS091UserlandParser

public RSS091UserlandParser()

RSS091UserlandParser

protected RSS091UserlandParser(String type)

Method Detail

getImage

protected Element getImage(Element rssRoot)
It looks for the 'image' elements under the 'channel' elemment.

getItems

protected List getItems(Element rssRoot)
It looks for the 'item' elements under the 'channel' elemment.

getRSSNamespace

protected Namespace getRSSNamespace()

getRSSVersion

protected String getRSSVersion()

getTextInput

protected Element getTextInput(Element rssRoot)
It looks for the 'textinput' elements under the 'channel' elemment.

getTextInputLabel

protected String getTextInputLabel()
To be overriden by RSS 0.91 Netscape parser

isHourFormat24

protected boolean isHourFormat24(Element rssRoot)
To be overriden by RSS 0.91 Netscape and RSS 0.94

isMyType

public boolean isMyType(Document document)

parseChannel

protected WireFeed parseChannel(Element rssRoot)
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.

Parameters: rssRoot the root element of the RSS document to parse.

Returns: the parsed Channel bean.

parseImage

protected Image parseImage(Element rssRoot)
Parses the root element of an RSS document looking for image information.

It first invokes super.parseImage and then parses and injects the following properties if present: url, link, width, height and description.

Parameters: rssRoot the root element of the RSS document to parse for image information.

Returns: the parsed RSSImage bean.

parseItem

protected Item parseItem(Element rssRoot, Element eItem)
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.

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.

parseItemDescription

protected Description parseItemDescription(Element rssRoot, Element eDesc)
Copyright © Sun Microsystems. All Rights Reserved.