org.rometools.io.impl
Class OPML20Parser
java.lang.Object
com.sun.syndication.io.impl.BaseWireFeedParser
org.rometools.io.impl.OPML10Parser
org.rometools.io.impl.OPML20Parser
- All Implemented Interfaces:
- com.sun.syndication.io.WireFeedParser
public class OPML20Parser
- extends OPML10Parser
- Author:
- cooper
|
Constructor Summary |
OPML20Parser()
Creates a new instance of Opml20Parser |
|
Method Summary |
boolean |
isMyType(org.jdom.Document document)
Inspects an XML Document (JDOM) to check if it can parse it. |
com.sun.syndication.feed.WireFeed |
parse(org.jdom.Document document,
boolean validate)
Parses an XML document (JDOM Document) into a feed bean. |
protected Outline |
parseOutline(org.jdom.Element e,
boolean validate)
|
| 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 |
| Methods inherited from interface com.sun.syndication.io.WireFeedParser |
getType |
OPML20Parser
public OPML20Parser()
- Creates a new instance of Opml20Parser
isMyType
public boolean isMyType(org.jdom.Document document)
- 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 com.sun.syndication.io.WireFeedParser- Overrides:
isMyType in class OPML10Parser
- 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.
parse
public com.sun.syndication.feed.WireFeed parse(org.jdom.Document document,
boolean validate)
throws IllegalArgumentException,
com.sun.syndication.io.FeedException
- Parses an XML document (JDOM Document) into a feed bean.
- Specified by:
parse in interface com.sun.syndication.io.WireFeedParser- Overrides:
parse in class OPML10Parser
- Parameters:
document - XML document (JDOM) to parse.validate - indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).
- Returns:
- the resulting feed bean.
- Throws:
IllegalArgumentException - thrown if the parser cannot handle the given feed type.
com.sun.syndication.io.FeedException - thrown if a feed bean cannot be created out of the XML document (JDOM).
parseOutline
protected Outline parseOutline(org.jdom.Element e,
boolean validate)
throws com.sun.syndication.io.FeedException
- Overrides:
parseOutline in class OPML10Parser
- Throws:
com.sun.syndication.io.FeedException
Copyright © 2013 ROME Project. All Rights Reserved.