|
||||||||||
| 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>
T - feed typepublic abstract class AbstractAtomFeedParser<T>
Abstract base class for an Atom feed parser when the feed type is known in advance.
Implementation is not thread-safe.
| Field Summary | |
|---|---|
Class<T> |
feedClass
Deprecated. (scheduled to be made private final in 1.6) Use getFeedClass() |
InputStream |
inputStream
Deprecated. (scheduled to be made private final in 1.6) Use getInputStream() |
XmlNamespaceDictionary |
namespaceDictionary
Deprecated. (scheduled to be made private final in 1.6) Use getNamespaceDictionary() |
org.xmlpull.v1.XmlPullParser |
parser
Deprecated. (scheduled to be made private final in 1.6) Use getParser() |
| Constructor Summary | |
|---|---|
|
AbstractAtomFeedParser()
Deprecated. (scheduled to be removed in 1.6) Use AbstractAtomFeedParser(XmlNamespaceDictionary, XmlPullParser, InputStream, Class) |
protected |
AbstractAtomFeedParser(XmlNamespaceDictionary namespaceDictionary,
org.xmlpull.v1.XmlPullParser parser,
InputStream inputStream,
Class<T> feedClass)
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying parser. |
Class<T> |
getFeedClass()
Returns the feed class to parse. |
InputStream |
getInputStream()
Returns the input stream to read. |
XmlNamespaceDictionary |
getNamespaceDictionary()
Returns the XML namespace dictionary. |
org.xmlpull.v1.XmlPullParser |
getParser()
Returns the XML pull parser to use. |
protected abstract Object |
parseEntryInternal()
Parses a single entry. |
T |
parseFeed()
Parse the feed and return a new parsed instance of the feed type. |
Object |
parseNextEntry()
Parse the next item in the feed and return a new parsed instance of the item type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public org.xmlpull.v1.XmlPullParser parser
getParser()
@Deprecated public InputStream inputStream
getInputStream()
@Deprecated public Class<T> feedClass
getFeedClass()
@Deprecated public XmlNamespaceDictionary namespaceDictionary
getNamespaceDictionary()
| Constructor Detail |
|---|
@Deprecated public AbstractAtomFeedParser()
AbstractAtomFeedParser(XmlNamespaceDictionary, XmlPullParser, InputStream, Class)
protected AbstractAtomFeedParser(XmlNamespaceDictionary namespaceDictionary,
org.xmlpull.v1.XmlPullParser parser,
InputStream inputStream,
Class<T> feedClass)
namespaceDictionary - XML namespace dictionaryparser - XML pull parser to useinputStream - input stream to readfeedClass - feed class to parse| Method Detail |
|---|
public final org.xmlpull.v1.XmlPullParser getParser()
public final InputStream getInputStream()
public final Class<T> getFeedClass()
public final XmlNamespaceDictionary getNamespaceDictionary()
public T parseFeed()
throws IOException,
org.xmlpull.v1.XmlPullParserException
IOException - I/O exception
org.xmlpull.v1.XmlPullParserException - XML pull parser exception
public Object parseNextEntry()
throws IOException,
org.xmlpull.v1.XmlPullParserException
null and automatically close the parser (in which case
there is no need to call close().
IOException - I/O exception
org.xmlpull.v1.XmlPullParserException - XML pull parser exception
public void close()
throws IOException
IOException
protected abstract Object parseEntryInternal()
throws IOException,
org.xmlpull.v1.XmlPullParserException
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 | |||||||||