org.rometools.feed.module.mediarss.io
Class RSS20YahooParser

java.lang.Object
  extended by com.sun.syndication.io.impl.BaseWireFeedParser
      extended by com.sun.syndication.io.impl.RSS090Parser
          extended by com.sun.syndication.io.impl.RSS091UserlandParser
              extended by com.sun.syndication.io.impl.RSS092Parser
                  extended by com.sun.syndication.io.impl.RSS093Parser
                      extended by com.sun.syndication.io.impl.RSS094Parser
                          extended by com.sun.syndication.io.impl.RSS20Parser
                              extended by 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

Constructor Summary
  RSS20YahooParser()
           
protected RSS20YahooParser(String type)
           
 
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
 

Constructor Detail

RSS20YahooParser

public RSS20YahooParser()

RSS20YahooParser

protected RSS20YahooParser(String type)
Method Detail

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.