com.google.api.client.xml.atom
Class AtomFeedParser<T,E>

java.lang.Object
  extended by com.google.api.client.xml.atom.AbstractAtomFeedParser<T>
      extended by com.google.api.client.xml.atom.AtomFeedParser<T,E>
Type Parameters:
T - feed type
E - entry type

Deprecated. (scheduled to be removed in 1.5) Use AtomFeedParser

@Deprecated
public final class AtomFeedParser<T,E>
extends AbstractAtomFeedParser<T>

Atom feed pull parser when the Atom entry class is known in advance.

Since:
1.0
Author:
Yaniv Inbar

Field Summary
 Class<E> entryClass
          Deprecated. Atom entry class to parse.
 
Fields inherited from class com.google.api.client.xml.atom.AbstractAtomFeedParser
feedClass, inputStream, namespaceDictionary, parser
 
Constructor Summary
AtomFeedParser()
          Deprecated.  
 
Method Summary
static
<T,E> AtomFeedParser<T,E>
create(HttpResponse response, XmlNamespaceDictionary namespaceDictionary, Class<T> feedClass, Class<E> entryClass)
          Deprecated. Parses the given HTTP response using the given feed class and entry class.
protected  Object parseEntryInternal()
          Deprecated. Parses a single entry.
 E parseNextEntry()
          Deprecated. 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, parseFeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryClass

public Class<E> entryClass
Deprecated. 
Atom entry class to parse.

Constructor Detail

AtomFeedParser

public AtomFeedParser()
Deprecated. 
Method Detail

parseNextEntry

public E parseNextEntry()
                 throws IOException,
                        org.xmlpull.v1.XmlPullParserException
Deprecated. 
Description copied from class: AbstractAtomFeedParser
Parse the next item in the feed and return a new parsed instance 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 AbstractAtomFeedParser.close().

Overrides:
parseNextEntry in class AbstractAtomFeedParser<T>
Throws:
IOException - I/O exception
org.xmlpull.v1.XmlPullParserException - XML pull parser exception

parseEntryInternal

protected Object parseEntryInternal()
                             throws IOException,
                                    org.xmlpull.v1.XmlPullParserException
Deprecated. 
Description copied from class: AbstractAtomFeedParser
Parses a single entry.

Specified by:
parseEntryInternal in class AbstractAtomFeedParser<T>
Returns:
object representing the entry
Throws:
IOException - I/O exception
org.xmlpull.v1.XmlPullParserException - XML pull parser exception

create

public static <T,E> AtomFeedParser<T,E> create(HttpResponse response,
                                               XmlNamespaceDictionary namespaceDictionary,
                                               Class<T> feedClass,
                                               Class<E> entryClass)
                                  throws IOException,
                                         org.xmlpull.v1.XmlPullParserException
Deprecated. 
Parses the given HTTP response using the given feed class and entry class.

Type Parameters:
T - feed type
E - entry type
Parameters:
response - HTTP response
namespaceDictionary - XML namespace dictionary
feedClass - feed class
entryClass - entry class
Returns:
Atom feed parser
Throws:
IOException - I/O exception
org.xmlpull.v1.XmlPullParserException - XML pull parser exception


Copyright © 2010-2011 Google. All Rights Reserved.