|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.io.impl.BaseWireFeedParser
com.sun.syndication.io.impl.Atom10Parser
public class Atom10Parser
Parser for Atom 1.0
Constructor Summary | |
---|---|
|
Atom10Parser()
|
protected |
Atom10Parser(String type)
|
Method Summary | |
---|---|
protected org.jdom.Namespace |
getAtomNamespace()
|
static boolean |
getResolveURIs()
|
static boolean |
isAbsoluteURI(String uri)
|
boolean |
isMyType(org.jdom.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.jdom.Document document,
boolean validate)
Parses an XML document (JDOM Document) into a feed bean. |
protected List |
parseEntries(Feed feed,
String baseURI,
List eEntries)
|
protected Entry |
parseEntry(Feed feed,
org.jdom.Element eEntry,
String baseURI)
|
static Entry |
parseEntry(Reader rd,
String baseURI)
Parse entry from reader. |
protected WireFeed |
parseFeed(org.jdom.Element eFeed)
|
static String |
resolveURI(String baseURI,
org.jdom.Parent parent,
String url)
Resolve URI via base URL and parent element. |
static void |
setResolveURIs(boolean resolveURIs)
|
protected void |
validateFeed(org.jdom.Document document)
|
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedParser |
---|
extractForeignMarkup, getAttribute, getAttributeValue, getType, parseFeedModules, parseItemModules, parsePersonModules |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Atom10Parser()
protected Atom10Parser(String type)
Method Detail |
---|
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 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.jdom.Document document) throws FeedException
FeedException
protected WireFeed parseFeed(org.jdom.Element eFeed) throws FeedException
FeedException
protected List parseEntries(Feed feed, String baseURI, List eEntries)
protected Entry parseEntry(Feed feed, org.jdom.Element eEntry, String baseURI)
public static boolean isAbsoluteURI(String uri)
public static boolean isRelativeURI(String uri)
public static String resolveURI(String baseURI, org.jdom.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) throws org.jdom.JDOMException, IOException, IllegalArgumentException, FeedException
org.jdom.JDOMException
IOException
IllegalArgumentException
FeedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |