public interface Transfer
service provider interface responsible for
conversion of JSON objects to Java ones and vice-versa.| Modifier and Type | Method and Description |
|---|---|
void |
extract(Object obj,
String[] props,
Object[] values)
Called to inspect properties of an object (usually a JSON or JavaScript
wrapper).
|
void |
loadJSON(JSONCall call)
Starts the JSON or JSONP query.
|
Object |
toJSON(InputStream is)
Reads content of a stream and creates its JSON representation.
|
void extract(Object obj, String[] props, Object[] values)
obj - the object to inspectprops - the names of properties to check on the object
objvalues - array of the same length as props should be
filled by values of properties on the obj. If a property is
not defined, a null value should be stored in the arrayObject toJSON(InputStream is) throws IOException
extract
method.is - input stream to read data fromIOException - if something goes wrongvoid loadJSON(JSONCall call)
call - description of the call to makeCopyright © 2014 NetBeans. All Rights Reserved.