com.google.api.client.googleapis.json
Class JsonMultiKindFeedParser<T>
java.lang.Object
com.google.api.client.googleapis.json.AbstractJsonFeedParser<T>
com.google.api.client.googleapis.json.JsonMultiKindFeedParser<T>
- Type Parameters:
T
- feed type
public final class JsonMultiKindFeedParser<T>
- extends AbstractJsonFeedParser<T>
Google JSON-C feed parser when the item class can be computed from the kind.
- Since:
- 1.0
- Author:
- Yaniv Inbar
Method Summary |
static
|
use(com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpResponse response,
Class<T> feedClass,
Class<?>... itemClasses)
Parses the given HTTP response using the given feed class and item classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonMultiKindFeedParser
public JsonMultiKindFeedParser(com.google.api.client.json.JsonParser parser,
Class<T> feedClass,
Class<?>... itemClasses)
- Parameters:
parser
- JSON parserfeedClass
- feed classitemClasses
- item classes
use
public static <T,I> JsonMultiKindFeedParser<T> use(com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpResponse response,
Class<T> feedClass,
Class<?>... itemClasses)
throws IOException
- Parses the given HTTP response using the given feed class and item classes.
- Parameters:
jsonFactory
- JSON factoryresponse
- HTTP responsefeedClass
- feed classitemClasses
- item classes
- Throws:
IOException
- Since:
- 1.3
Copyright © 2010-2011 Google. All Rights Reserved.