com.sun.syndication.io.impl
Class RSS20Parser

java.lang.Object
  extended by com.sun.syndication.io.impl.BaseWireFeedParser
      extended by com.sun.syndication.io.impl.RSS090Parser
          extended by com.sun.syndication.io.impl.RSS091UserlandParser
              extended by com.sun.syndication.io.impl.RSS092Parser
                  extended by com.sun.syndication.io.impl.RSS093Parser
                      extended by com.sun.syndication.io.impl.RSS094Parser
                          extended by com.sun.syndication.io.impl.RSS20Parser
All Implemented Interfaces:
WireFeedParser
Direct Known Subclasses:
RSS20wNSParser

public class RSS20Parser
extends RSS094Parser


Constructor Summary
  RSS20Parser()
           
protected RSS20Parser(String type)
           
 
Method Summary
protected  String getRSSVersion()
           
protected  boolean isHourFormat24(org.jdom2.Element rssRoot)
          To be overriden by RSS 0.91 Netscape and RSS 0.94
 boolean isMyType(org.jdom2.Document document)
          Inspects an XML Document (JDOM) to check if it can parse it.
protected  Description parseItemDescription(org.jdom2.Element rssRoot, org.jdom2.Element eDesc)
           
 
Methods inherited from class com.sun.syndication.io.impl.RSS094Parser
parseChannel, parseItem
 
Methods inherited from class com.sun.syndication.io.impl.RSS092Parser
parseCategories
 
Methods inherited from class com.sun.syndication.io.impl.RSS091UserlandParser
getImage, getItems, getRSSNamespace, getTextInput, getTextInputLabel, parseImage
 
Methods inherited from class com.sun.syndication.io.impl.RSS090Parser
getContentNamespace, getRDFNamespace, parse, parseItems, parseTextInput, validateFeed
 
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedParser
extractForeignMarkup, getAttribute, getAttributeValue, getType, parseFeedModules, parseItemModules, parsePersonModules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSS20Parser

public RSS20Parser()

RSS20Parser

protected RSS20Parser(String type)
Method Detail

getRSSVersion

protected String getRSSVersion()
Overrides:
getRSSVersion in class RSS094Parser

isHourFormat24

protected boolean isHourFormat24(org.jdom2.Element rssRoot)
Description copied from class: RSS091UserlandParser
To be overriden by RSS 0.91 Netscape and RSS 0.94

Overrides:
isHourFormat24 in class RSS091UserlandParser

parseItemDescription

protected Description parseItemDescription(org.jdom2.Element rssRoot,
                                           org.jdom2.Element eDesc)
Overrides:
parseItemDescription in class RSS094Parser

isMyType

public boolean isMyType(org.jdom2.Document document)
Description copied from interface: WireFeedParser
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.

Specified by:
isMyType in interface WireFeedParser
Overrides:
isMyType in class RSS091UserlandParser
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.


Copyright © 2004–2013 ROME Project. All rights reserved.