Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.syndication.io.impl
Class FeedParsers  view FeedParsers download FeedParsers.java

java.lang.Object
  extended bycom.sun.syndication.io.impl.PluginManager
      extended bycom.sun.syndication.io.impl.FeedParsers

public class FeedParsers
extends PluginManager

Parses an XML document (JDOM Document) into a Feed.

It accepts all flavors of RSS (0.90, 0.91, 0.92, 0.93, 0.94, 1.0 and 2.0) and Atom 0.3 feeds.

The WireFeedParser is a liberal parser.

WireFeedParser instances are thread safe.

Parsers for a specific type must extend this class and register in the parser list. (Right now registration is hardcoded in the WireFeedParser constructor).


Field Summary
static java.lang.String FEED_PARSERS_KEY
          WireFeedParser.classes= [className] ...
 
Fields inherited from class com.sun.syndication.io.impl.PluginManager
 
Constructor Summary
FeedParsers()
          Creates a parser instance.
 
Method Summary
protected  java.lang.String getKey(java.lang.Object obj)
           
 com.sun.syndication.io.WireFeedParser getParserFor(org.jdom.Document document)
          Finds the real parser type for the given document feed.
 java.util.List getSupportedFeedTypes()
           
 
Methods inherited from class com.sun.syndication.io.impl.PluginManager
getKeys, getPlugin, getPluginMap, getPlugins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEED_PARSERS_KEY

public static final java.lang.String FEED_PARSERS_KEY
WireFeedParser.classes= [className] ...

See Also:
Constant Field Values
Constructor Detail

FeedParsers

public FeedParsers()
Creates a parser instance.

Method Detail

getSupportedFeedTypes

public java.util.List getSupportedFeedTypes()

getParserFor

public com.sun.syndication.io.WireFeedParser getParserFor(org.jdom.Document document)
Finds the real parser type for the given document feed.


getKey

protected java.lang.String getKey(java.lang.Object obj)
Specified by:
getKey in class PluginManager