org.rometools.feed.module.mediarss.io
Class RSS20YahooParser
java.lang.Object
com.sun.syndication.io.impl.BaseWireFeedParser
com.sun.syndication.io.impl.RSS090Parser
com.sun.syndication.io.impl.RSS091UserlandParser
com.sun.syndication.io.impl.RSS092Parser
com.sun.syndication.io.impl.RSS093Parser
com.sun.syndication.io.impl.RSS094Parser
com.sun.syndication.io.impl.RSS20Parser
org.rometools.feed.module.mediarss.io.RSS20YahooParser
- All Implemented Interfaces:
- com.sun.syndication.io.WireFeedParser
public class RSS20YahooParser
- extends com.sun.syndication.io.impl.RSS20Parser
- Author:
- Nathanial X. Freitas
Method Summary |
protected org.jdom.Namespace |
getRSSNamespace()
Returns the namespace used by RSS elements in document of the RSS 1.0
|
boolean |
isMyType(org.jdom.Document document)
Indicates if a JDom document is an RSS instance that can be parsed with the parser. |
protected com.sun.syndication.feed.WireFeed |
parseChannel(org.jdom.Element rssRoot)
After we parse the feed we put "rss_2.0" in it (so converters and generators work)
this parser is a phantom. |
Methods inherited from class com.sun.syndication.io.impl.RSS20Parser |
getRSSVersion, isHourFormat24, parseItemDescription |
Methods inherited from class com.sun.syndication.io.impl.RSS094Parser |
parseItem |
Methods inherited from class com.sun.syndication.io.impl.RSS092Parser |
parseCategories |
Methods inherited from class com.sun.syndication.io.impl.RSS091UserlandParser |
getImage, getItems, getTextInput, getTextInputLabel, parseImage |
Methods inherited from class com.sun.syndication.io.impl.RSS090Parser |
getContentNamespace, getRDFNamespace, parse, parseItems, parseTextInput, validateFeed |
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedParser |
extractForeignMarkup, getAttribute, getAttributeValue, getType, parseFeedModules, parseItemModules, parsePersonModules |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSS20YahooParser
public RSS20YahooParser()
RSS20YahooParser
protected RSS20YahooParser(String type)
isMyType
public boolean isMyType(org.jdom.Document document)
- Indicates if a JDom document is an RSS instance that can be parsed with the parser.
It checks for RDF ("http://www.w3.org/1999/02/22-rdf-syntax-ns#") and
RSS ("http://purl.org/rss/1.0/") namespaces being defined in the root element.
- Specified by:
isMyType
in interface com.sun.syndication.io.WireFeedParser
- Overrides:
isMyType
in class com.sun.syndication.io.impl.RSS20Parser
- Parameters:
document
- document to check if it can be parsed with this parser implementation.
- Returns:
- true if the document is RSS1., false otherwise.
getRSSNamespace
protected org.jdom.Namespace getRSSNamespace()
- Returns the namespace used by RSS elements in document of the RSS 1.0
- Overrides:
getRSSNamespace
in class com.sun.syndication.io.impl.RSS091UserlandParser
- Returns:
- returns "http://purl.org/rss/1.0/".
parseChannel
protected com.sun.syndication.feed.WireFeed parseChannel(org.jdom.Element rssRoot)
- After we parse the feed we put "rss_2.0" in it (so converters and generators work)
this parser is a phantom.
- Overrides:
parseChannel
in class com.sun.syndication.io.impl.RSS094Parser
Copyright © 2013 ROME Project. All Rights Reserved.