| java.lang.Object com.sun.syndication.io.impl.BaseWireFeedParser com.sun.syndication.io.impl.RSS090Parser
All known Subclasses: com.sun.syndication.io.impl.RSS10Parser, com.sun.syndication.io.impl.RSS091UserlandParser,
Method Summary | |
protected Namespace | getContentNamespace() Returns the namespace used by Content Module elements in document. | protected Element | getImage(Element rssRoot) This method exists because RSS0.90 and RSS1.0 have the 'image' element under the root elemment. | protected List | getItems(Element rssRoot) This method exists because RSS0.90 and RSS1.0 have the 'item' elements under the root elemment. | protected Namespace | getRDFNamespace() Returns the namespace used by RDF elements in document of the RSS version the parser supports. | protected Namespace | getRSSNamespace() Returns the namespace used by RSS elements in document of the RSS version the parser supports. | protected Element | getTextInput(Element rssRoot) This method exists because RSS0.90 and RSS1.0 have the 'textinput' element under the root elemment. | public boolean | isMyType(Document document) | public WireFeed | parse(Document document, boolean validate) | protected WireFeed | parseChannel(Element rssRoot) Parses the root element of an RSS document into a Channel bean.
It reads title, link and description and delegates to parseImage, parseItems
and parseTextInput. | protected Image | parseImage(Element rssRoot) Parses the root element of an RSS document looking for image information.
It reads title and url out of the 'image' element.
Parameters: rssRoot - the root element of the RSS document to parse for image information. | protected Item | parseItem(Element rssRoot, Element eItem) Parses an item element of an RSS document looking for item information.
It reads title and link out of the 'item' element.
Parameters: rssRoot - the root element of the RSS document in case it's needed for context. Parameters: eItem - the item element to parse. | protected List | parseItems(Element rssRoot) Parses the root element of an RSS document looking for all items information.
It iterates through the item elements list, obtained from the getItems() method, and invoke parseItem()
for each item element. | protected TextInput | parseTextInput(Element rssRoot) Parses the root element of an RSS document looking for text-input information.
It reads title, description, name and link out of the 'textinput' or 'textInput' element.
Parameters: rssRoot - the root element of the RSS document to parse for text-input information. | protected void | validateFeed(Document document) |
RSS090Parser | public RSS090Parser()(Code) | | |
getContentNamespace | protected Namespace getContentNamespace()(Code) | | Returns the namespace used by Content Module elements in document.
This implementation returns the EMTPY namespace.
returns the EMPTY namespace. |
getImage | protected Element getImage(Element rssRoot)(Code) | | This method exists because RSS0.90 and RSS1.0 have the 'image' element under the root elemment.
And RSS0.91, RSS0.02, RSS0.93, RSS0.94 and RSS2.0 have it under the 'channel' element.
|
getItems | protected List getItems(Element rssRoot)(Code) | | This method exists because RSS0.90 and RSS1.0 have the 'item' elements under the root elemment.
And RSS0.91, RSS0.02, RSS0.93, RSS0.94 and RSS2.0 have the item elements under the 'channel' element.
|
getRDFNamespace | protected Namespace getRDFNamespace()(Code) | | Returns the namespace used by RDF elements in document of the RSS version the parser supports.
This implementation returns the EMTPY namespace.
returns the EMPTY namespace. |
getRSSNamespace | protected Namespace getRSSNamespace()(Code) | | Returns the namespace used by RSS elements in document of the RSS version the parser supports.
This implementation returns the EMTPY namespace.
returns the EMPTY namespace. |
getTextInput | protected Element getTextInput(Element rssRoot)(Code) | | This method exists because RSS0.90 and RSS1.0 have the 'textinput' element under the root elemment.
And RSS0.91, RSS0.02, RSS0.93, RSS0.94 and RSS2.0 have it under the 'channel' element.
|
isMyType | public boolean isMyType(Document document)(Code) | | |
parseChannel | protected WireFeed parseChannel(Element rssRoot)(Code) | | Parses the root element of an RSS document into a Channel bean.
It reads title, link and description and delegates to parseImage, parseItems
and parseTextInput. This delegation always passes the root element of the RSS
document as different RSS version may have this information in different parts
of the XML tree (no assumptions made thanks to the specs variaty)
Parameters: rssRoot - the root element of the RSS document to parse. the parsed Channel bean. |
parseImage | protected Image parseImage(Element rssRoot)(Code) | | Parses the root element of an RSS document looking for image information.
It reads title and url out of the 'image' element.
Parameters: rssRoot - the root element of the RSS document to parse for image information. the parsed image bean. |
parseItem | protected Item parseItem(Element rssRoot, Element eItem)(Code) | | Parses an item element of an RSS document looking for item information.
It reads title and link out of the 'item' element.
Parameters: rssRoot - the root element of the RSS document in case it's needed for context. Parameters: eItem - the item element to parse. the parsed RSSItem bean. |
parseItems | protected List parseItems(Element rssRoot)(Code) | | Parses the root element of an RSS document looking for all items information.
It iterates through the item elements list, obtained from the getItems() method, and invoke parseItem()
for each item element. The resulting RSSItem of each item element is stored in a list.
Parameters: rssRoot - the root element of the RSS document to parse for all items information. a list with all the parsed RSSItem beans. |
parseTextInput | protected TextInput parseTextInput(Element rssRoot)(Code) | | Parses the root element of an RSS document looking for text-input information.
It reads title, description, name and link out of the 'textinput' or 'textInput' element.
Parameters: rssRoot - the root element of the RSS document to parse for text-input information. the parsed RSSTextInput bean. |
|
|