public class Atom10Parser extends BaseWireFeedParser
Modifier | Constructor and Description |
---|---|
|
Atom10Parser() |
protected |
Atom10Parser(String type) |
Modifier and Type | Method and Description |
---|---|
protected org.jdom2.Namespace |
getAtomNamespace() |
static boolean |
getResolveURIs() |
static boolean |
isAbsoluteURI(String uri) |
boolean |
isMyType(org.jdom2.Document document)
Inspects an XML Document (JDOM) to check if it can parse it.
|
static boolean |
isRelativeURI(String uri)
Returns true if URI is relative.
|
WireFeed |
parse(org.jdom2.Document document,
boolean validate,
Locale locale)
Parses an XML document (JDOM Document) into a feed bean.
|
protected List<Entry> |
parseEntries(Feed feed,
String baseURI,
List<org.jdom2.Element> eEntries,
Locale locale) |
protected Entry |
parseEntry(Feed feed,
org.jdom2.Element eEntry,
String baseURI,
Locale locale) |
static Entry |
parseEntry(Reader rd,
String baseURI,
Locale locale)
Parse entry from reader.
|
protected WireFeed |
parseFeed(org.jdom2.Element eFeed,
Locale locale) |
static String |
resolveURI(String baseURI,
org.jdom2.Parent parent,
String url)
Resolve URI via base URL and parent element.
|
static void |
setResolveURIs(boolean resolveURIs) |
protected void |
validateFeed(org.jdom2.Document document) |
extractForeignMarkup, getAttribute, getAttributeValue, getStyleSheet, getType, parseFeedModules, parseItemModules, parsePersonModules
public Atom10Parser()
protected Atom10Parser(String type)
public static void setResolveURIs(boolean resolveURIs)
public static boolean getResolveURIs()
protected org.jdom2.Namespace getAtomNamespace()
public boolean isMyType(org.jdom2.Document document)
WireFeedParser
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, Locale locale) throws IllegalArgumentException, FeedException
WireFeedParser
document
- 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 void validateFeed(org.jdom2.Document document) throws FeedException
FeedException
protected WireFeed parseFeed(org.jdom2.Element eFeed, Locale locale) throws FeedException
FeedException
protected List<Entry> parseEntries(Feed feed, String baseURI, List<org.jdom2.Element> eEntries, Locale locale)
protected Entry parseEntry(Feed feed, org.jdom2.Element eEntry, String baseURI, Locale locale)
public static boolean isAbsoluteURI(String uri)
public static boolean isRelativeURI(String uri)
public static String resolveURI(String baseURI, org.jdom2.Parent parent, String url)
baseURI
- Base URI used to fetch the XML documentparent
- Parent element from which to consider xml:baseurl
- URL to be resolvedpublic static Entry parseEntry(Reader rd, String baseURI, Locale locale) throws org.jdom2.JDOMException, IOException, IllegalArgumentException, FeedException
org.jdom2.JDOMException
IOException
IllegalArgumentException
FeedException
Copyright © 2021. All rights reserved.