public class JSONDataLoader extends FileDataLoader
JSONNode
based on a JSON file. The JSON file must contain a single JSON value on the top level,
such as JSON object (like { "a": 1, "b": 2 }
), an array, or even just a string, number, boolean or
null
.args, dataFile, engine
Constructor and Description |
---|
JSONDataLoader() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
finalizeResult(java.lang.Object jsonPOJO)
Converts the POJO created from the JSON to its final form.
|
protected java.lang.Object |
load(java.io.InputStream in)
FileDataLoader subclasess override this method to parse
the file. |
load
protected java.lang.Object load(java.io.InputStream in) throws java.lang.Exception
FileDataLoader
FileDataLoader
subclasess override this method to parse
the file.load
in class FileDataLoader
java.lang.Exception
protected java.lang.Object finalizeResult(java.lang.Object jsonPOJO) throws java.lang.Exception
java.lang.Exception