Top Description Fields Constructors Methods
com.rometools.rome.io.impl

public Class RSS20wNSParser

extends RSS20Parser
Class Inheritance
Imports
java.util.Locale, org.jdom2.Document, .Element, .Namespace, com.rometools.rome.feed.WireFeed

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

Field Summary

Modifier and TypeField and Description
private static String

Constructor Summary

AccessConstructor and Description
public
protected
RSS20wNSParser(final String type)

Method Summary

Modifier and TypeMethod and Description
protected Namespace
getRSSNamespace()

Overrides com.rometools.rome.io.impl.RSS091UserlandParser.getRSSNamespace.

Returns the namespace used by RSS elements in document of the RSS version the parser supports.
public boolean
isMyType(final Document
XML Document (JDOM) to check if it can be parsed by this parser.
document
)

Overrides com.rometools.rome.io.impl.RSS20Parser.isMyType.

Implements com.rometools.rome.io.WireFeedParser.isMyType.

Inspects an XML Document (JDOM) to check if it can parse it.
protected WireFeed
parseChannel(final Element
the root element of the RSS document to parse.
rssRoot
,
final Locale locale)

Overrides com.rometools.rome.io.impl.RSS094Parser.parseChannel.

After we parse the feed we put "rss_2.0" in it (so converters and generators work) this parser is a phantom.
Inherited from com.rometools.rome.io.impl.RSS20Parser:
getRSSVersionisHourFormat24parseItemDescription

Field Detail

RSS20_URIback to summary
private static String RSS20_URI

Constructor Detail

RSS20wNSParserback to summary
public RSS20wNSParser()
RSS20wNSParserback to summary
protected RSS20wNSParser(final String type)

Method Detail

getRSSNamespaceback to summary
protected Namespace getRSSNamespace()

Overrides com.rometools.rome.io.impl.RSS091UserlandParser.getRSSNamespace.

Doc from com.rometools.rome.io.impl.RSS090Parser.getRSSNamespace.

Returns the namespace used by RSS elements in document of the RSS version the parser supports.

This implementation returns the EMTPY namespace.

Returns:Namespace

returns the EMPTY namespace.

Annotations
@Override
isMyTypeback to summary
public boolean isMyType(final Document document)

Overrides com.rometools.rome.io.impl.RSS20Parser.isMyType.

Implements com.rometools.rome.io.WireFeedParser.isMyType.

Doc from com.rometools.rome.io.WireFeedParser.isMyType.

Inspects 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.

Parameters
document:Document

XML Document (JDOM) to check if it can be parsed by this parser.

Returns:boolean

true if the parser know how to parser this feed, false otherwise.

Annotations
@Override
parseChannelback to summary
protected WireFeed parseChannel(final Element rssRoot, final Locale locale)

Overrides com.rometools.rome.io.impl.RSS094Parser.parseChannel.

After we parse the feed we put "rss_2.0" in it (so converters and generators work) this parser is a phantom.

Parameters
rssRoot:Element

Doc from com.rometools.rome.io.impl.RSS091UserlandParser.parseChannel.

the root element of the RSS document to parse.

Returns:WireFeed

Doc from com.rometools.rome.io.impl.RSS091UserlandParser.parseChannel.

the parsed Channel bean.

Annotations
@Override