public class OPML10Parser extends BaseWireFeedParser implements WireFeedParser
| Constructor and Description |
|---|
OPML10Parser() |
OPML10Parser(String type) |
| 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,
Locale locale)
Parses an XML document (JDOM Document) into a feed bean.
|
protected Outline |
parseOutline(org.jdom2.Element e,
boolean validate,
Locale locale) |
protected List<Outline> |
parseOutlines(List<org.jdom2.Element> elements,
boolean validate,
Locale locale) |
protected boolean |
readBoolean(String value) |
protected int[] |
readIntArray(String value) |
protected Integer |
readInteger(String value) |
extractForeignMarkup, getAttribute, getAttributeValue, getStyleSheet, getType, parseFeedModules, parseItemModules, parsePersonModulesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic OPML10Parser()
public OPML10Parser(String type)
public boolean isMyType(org.jdom2.Document document)
It checks if the given document if the type of feeds the parser understands.
isMyType in interface WireFeedParserdocument - XML Document (JDOM) to check if it can be parsed by this parser.public WireFeed parse(org.jdom2.Document document, boolean validate, Locale locale) throws IllegalArgumentException, FeedException
parse in interface WireFeedParserdocument - XML document (JDOM) to parse.validate - indicates if the feed should be strictly validated (NOT YET IMPLEMENTED).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, Locale locale) throws FeedException
FeedExceptionprotected List<Outline> parseOutlines(List<org.jdom2.Element> elements, boolean validate, Locale locale) throws FeedException
FeedExceptionprotected boolean readBoolean(String value)
protected int[] readIntArray(String value)
Copyright © 2025. All rights reserved.