java.lang.Object
com.sun.syndication.io.impl.BaseWireFeedParser
com.sun.syndication.io.impl.Atom10Parser
- All Implemented Interfaces:
- com.sun.syndication.io.WireFeedParser
- public class Atom10Parser
- extends BaseWireFeedParser
|
Method Summary |
private java.net.URL |
findBaseURI(org.jdom.Element root)
Use feed links and/or xml:base attribute to determine baseURI of feed |
protected org.jdom.Namespace |
getAtomNamespace()
|
boolean |
isMyType(org.jdom.Document document)
Inspects an XML Document (JDOM) to check if it can parse it. |
private boolean |
isRelativeURI(java.lang.String uri)
|
com.sun.syndication.feed.WireFeed |
parse(org.jdom.Document document,
boolean validate)
Parses an XML document (JDOM Document) into a feed bean. |
private java.util.List |
parseAlternateLinks(com.sun.syndication.feed.atom.Feed feed,
com.sun.syndication.feed.atom.Entry entry,
java.net.URL baseURI,
java.util.List eLinks)
|
private java.util.List |
parseCategories(java.net.URL baseURI,
java.util.List eCategories)
|
private com.sun.syndication.feed.atom.Category |
parseCategory(java.net.URL baseURI,
org.jdom.Element eCategory)
|
private com.sun.syndication.feed.atom.Content |
parseContent(org.jdom.Element e)
|
private java.util.List |
parseEntries(com.sun.syndication.feed.atom.Feed feed,
java.net.URL baseURI,
java.util.List eEntries)
|
private com.sun.syndication.feed.atom.Entry |
parseEntry(com.sun.syndication.feed.atom.Feed feed,
org.jdom.Element eEntry,
java.net.URL baseURI)
|
protected com.sun.syndication.feed.WireFeed |
parseFeed(org.jdom.Element eFeed)
|
private com.sun.syndication.feed.atom.Link |
parseLink(com.sun.syndication.feed.atom.Feed feed,
com.sun.syndication.feed.atom.Entry entry,
java.net.URL baseURI,
org.jdom.Element eLink)
|
private java.util.List |
parseOtherLinks(com.sun.syndication.feed.atom.Feed feed,
com.sun.syndication.feed.atom.Entry entry,
java.net.URL baseURI,
java.util.List eLinks)
|
private com.sun.syndication.feed.atom.Person |
parsePerson(java.net.URL baseURI,
org.jdom.Element ePerson)
|
private java.util.List |
parsePersons(java.net.URL baseURI,
java.util.List ePersons)
|
private java.lang.String |
resolveURI(java.net.URL baseURI,
org.jdom.Parent parent,
java.lang.String url)
Use xml:base attributes at feed and entry level to resolve relative links |
protected void |
validateFeed(org.jdom.Document document)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATOM_10_URI
private static final java.lang.String ATOM_10_URI
- See Also:
- Constant Field Values
ns
org.jdom.Namespace ns
Atom10Parser
public Atom10Parser()
Atom10Parser
protected Atom10Parser(java.lang.String type)
getAtomNamespace
protected org.jdom.Namespace getAtomNamespace()
isMyType
public boolean isMyType(org.jdom.Document document)
- Description copied from interface:
com.sun.syndication.io.WireFeedParser
- Inspects an XML Document (JDOM) to check if it can parse it.
It checks if the given document if the type of feeds the parser understands.
parse
public com.sun.syndication.feed.WireFeed parse(org.jdom.Document document,
boolean validate)
throws java.lang.IllegalArgumentException,
com.sun.syndication.io.FeedException
- Description copied from interface:
com.sun.syndication.io.WireFeedParser
- Parses an XML document (JDOM Document) into a feed bean.
validateFeed
protected void validateFeed(org.jdom.Document document)
throws com.sun.syndication.io.FeedException
parseFeed
protected com.sun.syndication.feed.WireFeed parseFeed(org.jdom.Element eFeed)
parseLink
private com.sun.syndication.feed.atom.Link parseLink(com.sun.syndication.feed.atom.Feed feed,
com.sun.syndication.feed.atom.Entry entry,
java.net.URL baseURI,
org.jdom.Element eLink)
parseAlternateLinks
private java.util.List parseAlternateLinks(com.sun.syndication.feed.atom.Feed feed,
com.sun.syndication.feed.atom.Entry entry,
java.net.URL baseURI,
java.util.List eLinks)
parseOtherLinks
private java.util.List parseOtherLinks(com.sun.syndication.feed.atom.Feed feed,
com.sun.syndication.feed.atom.Entry entry,
java.net.URL baseURI,
java.util.List eLinks)
parsePerson
private com.sun.syndication.feed.atom.Person parsePerson(java.net.URL baseURI,
org.jdom.Element ePerson)
parsePersons
private java.util.List parsePersons(java.net.URL baseURI,
java.util.List ePersons)
parseContent
private com.sun.syndication.feed.atom.Content parseContent(org.jdom.Element e)
parseEntries
private java.util.List parseEntries(com.sun.syndication.feed.atom.Feed feed,
java.net.URL baseURI,
java.util.List eEntries)
parseEntry
private com.sun.syndication.feed.atom.Entry parseEntry(com.sun.syndication.feed.atom.Feed feed,
org.jdom.Element eEntry,
java.net.URL baseURI)
parseCategories
private java.util.List parseCategories(java.net.URL baseURI,
java.util.List eCategories)
parseCategory
private com.sun.syndication.feed.atom.Category parseCategory(java.net.URL baseURI,
org.jdom.Element eCategory)
resolveURI
private java.lang.String resolveURI(java.net.URL baseURI,
org.jdom.Parent parent,
java.lang.String url)
- Use xml:base attributes at feed and entry level to resolve relative links
isRelativeURI
private boolean isRelativeURI(java.lang.String uri)
findBaseURI
private java.net.URL findBaseURI(org.jdom.Element root)
- Use feed links and/or xml:base attribute to determine baseURI of feed