Class JsonUtils
java.lang.Object
utils.JsonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T> parseJsonSequence(InputStream inputStream, com.google.gson.Gson gson, Class<T> clazz) Parses the provided input stream consisting of multiple json objects into a list of the provided class
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
parseJsonSequence
public static <T> List<T> parseJsonSequence(InputStream inputStream, com.google.gson.Gson gson, Class<T> clazz) Parses the provided input stream consisting of multiple json objects into a list of the provided class- Type Parameters:
T- The type of the class that the jsons are converted to- Parameters:
inputStream- The input stream to parsegson- The gson class to useclazz- The class to convert to- Returns:
- The list that is returned
-