com.sun.syndication.io.impl
public class Atom10Parser extends BaseWireFeedParser
Modifier | Constructor and Description |
---|---|
|
Atom10Parser() |
protected |
Atom10Parser(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
protected org.jdom.Namespace |
getAtomNamespace() |
static boolean |
getResolveURIs() |
static boolean |
isAbsoluteURI(java.lang.String uri) |
boolean |
isMyType(org.jdom.Document document)
Inspects an XML Document (JDOM) to check if it can parse it.
|
static boolean |
isRelativeURI(java.lang.String uri)
Returns true if URI is relative.
|
WireFeed |
parse(org.jdom.Document document,
boolean validate)
Parses an XML document (JDOM Document) into a feed bean.
|
protected java.util.List |
parseEntries(Feed feed,
java.lang.String baseURI,
java.util.List eEntries) |
protected Entry |
parseEntry(Feed feed,
org.jdom.Element eEntry,
java.lang.String baseURI) |
static Entry |
parseEntry(java.io.Reader rd,
java.lang.String baseURI)
Parse entry from reader.
|
protected WireFeed |
parseFeed(org.jdom.Element eFeed) |
static java.lang.String |
resolveURI(java.lang.String baseURI,
org.jdom.Parent parent,
java.lang.String url)
Resolve URI via base URL and parent element.
|
static void |
setResolveURIs(boolean resolveURIs) |
protected void |
validateFeed(org.jdom.Document document) |
extractForeignMarkup, getAttribute, getAttributeValue, getType, parseFeedModules, parseItemModules, parsePersonModules
public Atom10Parser()
protected Atom10Parser(java.lang.String type)
public static void setResolveURIs(boolean resolveURIs)
public static boolean getResolveURIs()
protected org.jdom.Namespace getAtomNamespace()
public boolean isMyType(org.jdom.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.jdom.Document document, boolean validate) throws java.lang.IllegalArgumentException, FeedException
WireFeedParser
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 void validateFeed(org.jdom.Document document) throws FeedException
FeedException
protected WireFeed parseFeed(org.jdom.Element eFeed) throws FeedException
FeedException
protected java.util.List parseEntries(Feed feed, java.lang.String baseURI, java.util.List eEntries)
public static boolean isAbsoluteURI(java.lang.String uri)
public static boolean isRelativeURI(java.lang.String uri)
public static java.lang.String resolveURI(java.lang.String baseURI, org.jdom.Parent parent, java.lang.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(java.io.Reader rd, java.lang.String baseURI) throws org.jdom.JDOMException, java.io.IOException, java.lang.IllegalArgumentException, FeedException
org.jdom.JDOMException
java.io.IOException
java.lang.IllegalArgumentException
FeedException