- java.lang.Object
-
- com.gluonhq.impl.connect.converter.JsonUtil
-
public class JsonUtil extends Object
A utility class that provides useful methods when working with JSON data.
-
-
Constructor Summary
Constructors Constructor Description JsonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.json.JsonReader
createJsonReader(InputStream input)
Create a JsonReader from the specifiedInputStream
.
-
-
-
Method Detail
-
createJsonReader
public static javax.json.JsonReader createJsonReader(InputStream input)
Create a JsonReader from the specifiedInputStream
. When the logging level for this class is set toLevel.FINE
, the JSON content of the InputStream will be written to a String and logged. Otherwise, it will just create a JsonReader from a basicInputStreamReader
.- Parameters:
input
- the InputStream to read the JSON data from- Returns:
- a JsonReader to read the data from the InputStream
-
-