public class OPML10Parser extends BaseWireFeedParser
| Constructor and Description |
|---|
OPML10Parser() |
OPML10Parser(java.lang.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,
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) |
protected java.util.List<Outline> |
parseOutlines(java.util.List<org.jdom2.Element> elements,
boolean validate,
java.util.Locale locale) |
protected boolean |
readBoolean(java.lang.String value) |
protected int[] |
readIntArray(java.lang.String value) |
protected java.lang.Integer |
readInteger(java.lang.String value) |
extractForeignMarkup, getAttribute, getAttributeValue, getStyleSheet, getType, parseFeedModules, parseItemModules, parsePersonModulespublic OPML10Parser()
public OPML10Parser(java.lang.String type)
public boolean isMyType(org.jdom2.Document document)
It checks if the given document if the type of feeds the parser understands.
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
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
FeedExceptionprotected java.util.List<Outline> parseOutlines(java.util.List<org.jdom2.Element> elements, boolean validate, java.util.Locale locale) throws FeedException
FeedExceptionprotected boolean readBoolean(java.lang.String value)
protected int[] readIntArray(java.lang.String value)
protected java.lang.Integer readInteger(java.lang.String value)
Copyright © 2025. All rights reserved.