com.google.api.client.googleapis.json
Class AbstractJsonFeedParser<T>

java.lang.Object
  extended by com.google.api.client.googleapis.json.AbstractJsonFeedParser<T>
Type Parameters:
T - feed type
Direct Known Subclasses:
JsonFeedParser, JsonMultiKindFeedParser

Deprecated. (scheduled to be removed in 1.11)

@Deprecated
public abstract class AbstractJsonFeedParser<T>
extends Object

Abstract base class for a Google JSON-C feed parser when the feed class is known in advance.

Since:
1.0
Author:
Yaniv Inbar

Method Summary
 void close()
          Deprecated. Closes the underlying parser.
 T parseFeed()
          Deprecated. Parse the feed and return a new parsed instance of the feed class.
 Object parseNextItem()
          Deprecated. Parse the next item in the feed and return a new parsed instance of the item class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseFeed

public T parseFeed()
            throws IOException
Deprecated. 
Parse the feed and return a new parsed instance of the feed class. This method can be skipped if all you want are the items.

Throws:
IOException

parseNextItem

public Object parseNextItem()
                     throws IOException
Deprecated. 
Parse the next item in the feed and return a new parsed instance of the item class. 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:
IOException

close

public void close()
           throws IOException
Deprecated. 
Closes the underlying parser.

Throws:
IOException


Copyright © 2010-2012 Google. All Rights Reserved.