public <T> T fromJson(Reader paramReader, Type paramType) throws JsonIOException, JsonSyntaxException { paramReader = new JsonReader(paramReader); paramType = fromJson(paramReader, paramType); assertFullConsumption(paramType, paramReader); return paramType; }
public <T> T fromJson(Reader paramReader, Class<T> paramClass) throws JsonSyntaxException, JsonIOException { paramReader = new JsonReader(paramReader); Object localObject = fromJson(paramReader, paramClass); assertFullConsumption(localObject, paramReader); return Primitives.wrap(paramClass).cast(localObject); }
public <T> T fromJson(Reader reader, Type type) throws JsonIOException, JsonSyntaxException { JsonReader jsonReader = new JsonReader(reader); T fromJson = fromJson(jsonReader, type); assertFullConsumption(fromJson, jsonReader); return fromJson; }
public <T> T fromJson(Reader reader, Class<T> cls) throws JsonSyntaxException, JsonIOException { JsonReader jsonReader = new JsonReader(reader); Object fromJson = fromJson(jsonReader, (Type) cls); assertFullConsumption(fromJson, jsonReader); return Primitives.wrap(cls).cast(fromJson); }