Interface GsonParser<T>
- Type Parameters:
T- the POJO type
- All Known Implementing Classes:
AliasListParser,AlternateEpisodeListParser,AlternateListListParser,AlternateListParser,CastCreditListParser,CastMemberListParser,CrewCreditListParser,CrewMemberListParser,EpisodeListParser,EpisodeParser,ImageListParser,PersonListParser,PersonParser,PersonResultListParser,SeasonListParser,ShowListParser,ShowParser,ShowResultListParser,UpdatesParser
public interface GsonParser<T>
Defines a parser that deserializes a JSON-formatted source input stream to the defined POJO type.
-
Method Summary
Modifier and TypeMethodDescriptionparse(com.google.gson.Gson gson, InputStream jsonStream) Deserializes a JSON-formatted input stream to the defined POJO type.
-
Method Details
-
parse
Deserializes a JSON-formatted input stream to the defined POJO type.- Parameters:
gson- the Gson instance used to deserialize the stringjsonStream- stream with expected JSON-formatted contents- Returns:
- the parsed POJO instance
-