public class FeedParsers extends PluginManager<WireFeedParser>
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).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FEED_PARSERS_KEY
WireFeedParser.classes= [className] ...
|
Constructor and Description |
---|
FeedParsers()
Creates a parser instance.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getKey(WireFeedParser obj) |
WireFeedParser |
getParserFor(org.jdom2.Document document)
Finds the real parser type for the given document feed.
|
java.util.List<java.lang.String> |
getSupportedFeedTypes() |
getKeys, getPlugin, getPluginMap, getPlugins
public static final java.lang.String FEED_PARSERS_KEY
public java.util.List<java.lang.String> getSupportedFeedTypes()
public WireFeedParser getParserFor(org.jdom2.Document document)
document
- document feed to find the parser for.protected java.lang.String getKey(WireFeedParser obj)
getKey
in class PluginManager<WireFeedParser>