public class ParseFirstJsonValueNamed<T> extends Object implements com.google.common.base.Function<HttpResponse,T>
Constructor and Description |
---|
ParseFirstJsonValueNamed(GsonWrapper json,
com.google.inject.TypeLiteral<T> type,
String name) |
Modifier and Type | Method and Description |
---|---|
T |
apply(HttpResponse arg0) |
protected boolean |
nnn(String toFind,
com.google.gson.stream.JsonReader reader,
com.google.gson.stream.JsonToken token,
AtomicReference<String> name) |
protected T |
nothing() |
com.google.gson.stream.JsonToken |
skipAndPeek(com.google.gson.stream.JsonToken token,
com.google.gson.stream.JsonReader reader) |
protected Logger logger
public ParseFirstJsonValueNamed(GsonWrapper json, com.google.inject.TypeLiteral<T> type, String name)
public T apply(HttpResponse arg0)
apply
in interface com.google.common.base.Function<HttpResponse,T>
protected T nothing()
protected boolean nnn(String toFind, com.google.gson.stream.JsonReader reader, com.google.gson.stream.JsonToken token, AtomicReference<String> name) throws IOException
IOException
public com.google.gson.stream.JsonToken skipAndPeek(com.google.gson.stream.JsonToken token, com.google.gson.stream.JsonReader reader) throws IOException
IOException
Copyright © 2009-2013 jclouds. All Rights Reserved.