Package com.rometools.rome.io.impl
Class RSS20wNSParser
-
- All Implemented Interfaces:
WireFeedParser
public class RSS20wNSParser extends RSS20Parser
To address issue with certain feeds (brought up by Charles Miller): "During the debacle that was the rollout of RSS2.0, this namespace was tried, and even appeared in Dave Winer's Scripting News feed for a while. It was then withdrawn, but the wonderful thing about standards is the moment you roll one out, even if it's marked as unfinished and subject to change, someone will end up stuck with it forever." Note that there is not counter part on the generator, we only generate the final RSS2
-
-
Constructor Summary
Constructors Modifier Constructor Description RSS20wNSParser()protectedRSS20wNSParser(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jdom2.NamespacegetRSSNamespace()Returns the namespace used by RSS elements in document of the RSS version the parser supports.booleanisMyType(org.jdom2.Document document)Inspects an XML Document (JDOM) to check if it can parse it.protected WireFeedparseChannel(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.-
Methods inherited from class com.rometools.rome.io.impl.RSS20Parser
getRSSVersion, isHourFormat24, parseItemDescription
-
Methods inherited from class com.rometools.rome.io.impl.RSS094Parser
parseItem
-
Methods inherited from class com.rometools.rome.io.impl.RSS092Parser
parseCategories
-
Methods inherited from class com.rometools.rome.io.impl.RSS091UserlandParser
getImage, getItems, getTextInput, getTextInputLabel, parseImage
-
Methods inherited from class com.rometools.rome.io.impl.RSS090Parser
getContentNamespace, getRDFNamespace, parse, parseItems, parseTextInput, validateFeed
-
Methods inherited from class com.rometools.rome.io.impl.BaseWireFeedParser
extractForeignMarkup, getAttribute, getAttributeValue, getStyleSheet, getType, parseFeedModules, parseItemModules, parsePersonModules
-
-
-
-
Constructor Detail
-
RSS20wNSParser
public RSS20wNSParser()
-
RSS20wNSParser
protected RSS20wNSParser(String type)
-
-
Method Detail
-
isMyType
public boolean isMyType(org.jdom2.Document document)
Description copied from interface:WireFeedParserInspects an XML Document (JDOM) to check if it can parse it.It checks if the given document if the type of feeds the parser understands.
- Specified by:
isMyTypein interfaceWireFeedParser- Overrides:
isMyTypein classRSS20Parser- Parameters:
document- XML Document (JDOM) to check if it can be parsed by this parser.- Returns:
- true if the parser know how to parser this feed, false otherwise.
-
getRSSNamespace
protected org.jdom2.Namespace getRSSNamespace()
Description copied from class:RSS090ParserReturns the namespace used by RSS elements in document of the RSS version the parser supports.This implementation returns the EMTPY namespace.
- Overrides:
getRSSNamespacein classRSS091UserlandParser- Returns:
- returns the EMPTY namespace.
-
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:
parseChannelin classRSS094Parser- Parameters:
rssRoot- the root element of the RSS document to parse.- Returns:
- the parsed Channel bean.
-
-