|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.xml.atom.AbstractAtomFeedParser<T>
com.google.api.client.http.xml.atom.AtomFeedParser<T,E>
T
- feed typeE
- entry typepublic final class AtomFeedParser<T,E>
Atom feed pull parser when the Atom entry class is known in advance.
Implementation is not thread-safe.
Constructor Summary | |
---|---|
AtomFeedParser(XmlNamespaceDictionary namespaceDictionary,
org.xmlpull.v1.XmlPullParser parser,
InputStream inputStream,
Class<T> feedClass,
Class<E> entryClass)
|
Method Summary | ||
---|---|---|
static
|
create(HttpResponse response,
XmlNamespaceDictionary namespaceDictionary,
Class<T> feedClass,
Class<E> entryClass)
Parses the given HTTP response using the given feed class and entry class. |
|
Class<E> |
getEntryClass()
Returns the Atom entry class to parse. |
|
protected Object |
parseEntryInternal()
Parses a single entry. |
|
E |
parseNextEntry()
Parse the next item in the feed and return a new parsed instance of the item type. |
Methods inherited from class com.google.api.client.xml.atom.AbstractAtomFeedParser |
---|
close, getFeedClass, getInputStream, getNamespaceDictionary, getParser, parseFeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtomFeedParser(XmlNamespaceDictionary namespaceDictionary, org.xmlpull.v1.XmlPullParser parser, InputStream inputStream, Class<T> feedClass, Class<E> entryClass)
namespaceDictionary
- XML namespace dictionaryparser
- XML pull parser to useinputStream
- input stream to readfeedClass
- feed class to parseMethod Detail |
---|
public E parseNextEntry() throws IOException, org.xmlpull.v1.XmlPullParserException
AbstractAtomFeedParser
null
and automatically close the parser (in which case
there is no need to call AbstractAtomFeedParser.close()
.
parseNextEntry
in class AbstractAtomFeedParser<T>
IOException
- I/O exception
org.xmlpull.v1.XmlPullParserException
- XML pull parser exceptionprotected Object parseEntryInternal() throws IOException, org.xmlpull.v1.XmlPullParserException
AbstractAtomFeedParser
parseEntryInternal
in class AbstractAtomFeedParser<T>
IOException
- I/O exception
org.xmlpull.v1.XmlPullParserException
- XML pull parser exceptionpublic final Class<E> getEntryClass()
public static <T,E> AtomFeedParser<T,E> create(HttpResponse response, XmlNamespaceDictionary namespaceDictionary, Class<T> feedClass, Class<E> entryClass) throws IOException, org.xmlpull.v1.XmlPullParserException
T
- feed typeE
- entry typeresponse
- HTTP responsenamespaceDictionary
- XML namespace dictionaryfeedClass
- feed classentryClass
- entry class
IOException
- I/O exception
org.xmlpull.v1.XmlPullParserException
- XML pull parser exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |