Interface GsonParser<T>
- Type Parameters:
T- the POJO type
- All Known Implementing Classes:
BasicParser,ListParser,MapParser
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
-