public class OPML20Parser extends OPML10Parser
Constructor and Description |
---|
OPML20Parser() |
Modifier and Type | Method and Description |
---|---|
boolean |
isMyType(org.jdom2.Document document)
Inspects an XML Document (JDOM) to check if it can parse it.
|
WireFeed |
parse(org.jdom2.Document document,
boolean validate,
java.util.Locale locale)
Parses an XML document (JDOM Document) into a feed bean.
|
protected Outline |
parseOutline(org.jdom2.Element e,
boolean validate,
java.util.Locale locale) |
parseOutlines, readBoolean, readIntArray, readInteger
extractForeignMarkup, getAttribute, getAttributeValue, getStyleSheet, getType, parseFeedModules, parseItemModules, parsePersonModules
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
public boolean isMyType(org.jdom2.Document document)
It checks if the given document if the type of feeds the parser understands.
isMyType
in interface WireFeedParser
isMyType
in class OPML10Parser
document
- XML Document (JDOM) to check if it can be parsed by this parser.public WireFeed parse(org.jdom2.Document document, boolean validate, java.util.Locale locale) throws java.lang.IllegalArgumentException, FeedException
parse
in interface WireFeedParser
parse
in class OPML10Parser
document
- XML document (JDOM) to parse.validate
- indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).java.lang.IllegalArgumentException
- thrown if the parser cannot handle the given feed type.FeedException
- thrown if a feed bean cannot be created out of the XML document (JDOM).protected Outline parseOutline(org.jdom2.Element e, boolean validate, java.util.Locale locale) throws FeedException
parseOutline
in class OPML10Parser
FeedException