com.sun.syndication.io.impl

Class RSS10Parser

public class RSS10Parser extends RSS090Parser

Field Summary
static StringRSS_URI
Constructor Summary
RSS10Parser()
protected RSS10Parser(String type)
Method Summary
protected NamespacegetRSSNamespace()
Returns the namespace used by RSS elements in document of the RSS 1.0

booleanisMyType(Document document)
Indicates if a JDom document is an RSS instance that can be parsed with the parser.
protected WireFeedparseChannel(Element rssRoot)
protected ItemparseItem(Element rssRoot, Element eItem)
Parses an item element of an RSS document looking for item information.
protected DescriptionparseItemDescription(Element rssRoot, Element eDesc)

Field Detail

RSS_URI

private static final String RSS_URI

Constructor Detail

RSS10Parser

public RSS10Parser()

RSS10Parser

protected RSS10Parser(String type)

Method Detail

getRSSNamespace

protected Namespace getRSSNamespace()
Returns the namespace used by RSS elements in document of the RSS 1.0

Returns: returns "http://purl.org/rss/1.0/".

isMyType

public boolean isMyType(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.

Parameters: document document to check if it can be parsed with this parser implementation.

Returns: true if the document is RSS1., false otherwise.

parseChannel

protected WireFeed parseChannel(Element rssRoot)

parseItem

protected Item parseItem(Element rssRoot, Element eItem)
Parses an item element of an RSS document looking for item information.

It first invokes super.parseItem and then parses and injects the description property if present.

Parameters: rssRoot the root element of the RSS document in case it's needed for context. eItem the item element to parse.

Returns: the parsed RSSItem bean.

parseItemDescription

protected Description parseItemDescription(Element rssRoot, Element eDesc)
Copyright © Sun Microsystems. All Rights Reserved.