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

public Class RSS20Parser

extends RSS094Parser
Class Inheritance
Known Direct Subclasses
com.rometools.rome.io.impl.RSS20wNSParser
Imports
com.rometools.rome.feed.rss.Description, org.jdom2.Attribute, .Document, .Element

Constructor Summary

AccessConstructor and Description
public
protected
RSS20Parser(final String type)

Method Summary

Modifier and TypeMethod and Description
protected String
protected boolean
isHourFormat24(final Element rssRoot)

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

To be overriden by RSS 0.91 Netscape and RSS 0.94
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.RSS091UserlandParser.isMyType.

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

Inspects an XML Document (JDOM) to check if it can parse it.
protected Description
private boolean
rootElementMatches(final Document document)

private boolean
versionAbsent(final Document document)

private boolean
versionMatches(final Document document)

Inherited from com.rometools.rome.io.impl.RSS094Parser:
parseChannelparseItem

Constructor Detail

RSS20Parserback to summary
public RSS20Parser()
RSS20Parserback to summary
protected RSS20Parser(final String type)

Method Detail

getRSSVersionback to summary
protected String getRSSVersion()

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

Annotations
@Override
isHourFormat24back to summary
protected boolean isHourFormat24(final Element rssRoot)

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

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

To be overriden by RSS 0.91 Netscape and RSS 0.94

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

Overrides com.rometools.rome.io.impl.RSS091UserlandParser.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
parseItemDescriptionback to summary
protected Description parseItemDescription(final Element rssRoot, final Element eDesc)

Overrides com.rometools.rome.io.impl.RSS092Parser.parseItemDescription.

Annotations
@Override
rootElementMatchesback to summary
private boolean rootElementMatches(final Document document)
versionAbsentback to summary
private boolean versionAbsent(final Document document)
versionMatchesback to summary
private boolean versionMatches(final Document document)