Class RSS20YahooParser

    • Constructor Detail

      • RSS20YahooParser

        public RSS20YahooParser()
      • RSS20YahooParser

        protected RSS20YahooParser​(String type)
    • Method Detail

      • isMyType

        public boolean isMyType​(org.jdom2.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 WireFeedParser
        Overrides:
        isMyType in class 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.jdom2.Namespace getRSSNamespace()
        Returns the namespace used by RSS elements in document of the RSS 1.0

        Overrides:
        getRSSNamespace in class RSS091UserlandParser
        Returns:
        returns "http://purl.org/rss/1.0/".
      • parseChannel

        protected WireFeed parseChannel​(org.jdom2.Element rssRoot,
                                        Locale locale)
        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 RSS094Parser