com.google.api.client.xml.atom
Class AbstractAtomFeedParser<T>
java.lang.Object
com.google.api.client.xml.atom.AbstractAtomFeedParser<T>
- Direct Known Subclasses:
- AtomFeedParser, MultiKindFeedParser
public abstract class AbstractAtomFeedParser<T>
- extends Object
Abstract base class for an Atom feed parser when the feed type is known in
advance.
- Since:
- 1.0
- Author:
- Yaniv Inbar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parser
public org.xmlpull.v1.XmlPullParser parser
inputStream
public InputStream inputStream
feedClass
public Class<T> feedClass
namespaceDictionary
public XmlNamespaceDictionary namespaceDictionary
AbstractAtomFeedParser
public AbstractAtomFeedParser()
parseFeed
public T parseFeed()
throws IOException,
org.xmlpull.v1.XmlPullParserException
- Parse the feed and return a new parsed instance of the feed type. This
method can be skipped if all you want are the items.
- Throws:
org.xmlpull.v1.XmlPullParserException
IOException
parseNextEntry
public Object parseNextEntry()
throws IOException,
org.xmlpull.v1.XmlPullParserException
- Parse the next item in the feed and return a new parsed instanceof of the
item type. If there is no item to parse, it will return
null and
automatically close the parser (in which case there is no need to call
close().
- Throws:
org.xmlpull.v1.XmlPullParserException
IOException
close
public void close()
throws IOException
- Closes the underlying parser.
- Throws:
IOException
parseEntryInternal
protected abstract Object parseEntryInternal()
throws IOException,
org.xmlpull.v1.XmlPullParserException
- Throws:
IOException
org.xmlpull.v1.XmlPullParserException
Copyright © 2010 Google. All Rights Reserved.