| Modifier and Type | Field and Description |
|---|---|
| private static final Namespace | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Namespace | Returns: returns "http://purl.org/rss/1.0/".Overrides com.
|
| public boolean | Returns: true if the document is RSS1., false otherwise.document to check if it can be parsed with this parser implementation. document)Overrides com. Implements com. |
| protected WireFeed | parseChannel(final Element
the root element of the RSS document to parse. rssRoot, final Locale locale)Overrides com. |
| protected Item | Returns: the parsed RSSItem bean.the root element of the RSS document in case it's needed for context. rssRoot, final Element the item element to parse. eItem, final Locale locale)Overrides com. |
| protected Description |
| RSS_NS | back to summary |
|---|---|
| private static final Namespace RSS_NS | |
| RSS_URI | back to summary |
|---|---|
| private static final String RSS_URI | |
| RSS10Parser | back to summary |
|---|---|
| public RSS10Parser() | |
| RSS10Parser | back to summary |
|---|---|
| protected RSS10Parser(final String type, final Namespace ns) | |
| getRSSNamespace | back to summary |
|---|---|
| protected Namespace getRSSNamespace() Overrides com. Returns the namespace used by RSS elements in document of the RSS 1.0
| |
| isMyType | back to summary |
|---|---|
| public boolean isMyType(final Document document) Overrides com. Implements com. 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#") namespace being defined in the root element and for the RSS 1.0 ("http://purl.org/rss/1.0/") namespace in the channel element. | |
| parseChannel | back to summary |
|---|---|
| protected WireFeed parseChannel(final Element rssRoot, final Locale locale) Overrides com. Doc from com. Parses the root element of an RSS document into a Channel bean. It reads title, link and description and delegates to parseImage, parseItems and parseTextInput. This delegation always passes the root element of the RSS document as different RSS version may have this information in different parts of the XML tree (no assumptions made thanks to the specs variaty)
| |
| parseItem | back to summary |
|---|---|
| protected Item parseItem(final Element rssRoot, final Element eItem, final Locale locale) Overrides com. 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.
| |
| parseItemDescription | back to summary |
|---|---|
| protected Description parseItemDescription(final Element rssRoot, final Element eDesc) | |