Package com.inrupt.client.jsonb
Class JsonbService
java.lang.Object
com.inrupt.client.jsonb.JsonbService
- All Implemented Interfaces:
 JsonService
A 
JsonService using the JakartaEE JSON Bind API.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<T> TfromJson(InputStream input, Class<T> clazz) Read JSON into a java object.<T> TfromJson(InputStream input, Type type) Read JSON into a java object.<T> voidtoJson(T object, OutputStream output) Write object data into JSON. 
- 
Constructor Details
- 
JsonbService
public JsonbService()Create a JSON-B service. 
 - 
 - 
Method Details
- 
toJson
Description copied from interface:JsonServiceWrite object data into JSON.- Specified by:
 toJsonin interfaceJsonService- Type Parameters:
 T- the object type- Parameters:
 object- the object to serializeoutput- the output stream- Throws:
 IOException- when there is a serialization error
 - 
fromJson
Description copied from interface:JsonServiceRead JSON into a java object.- Specified by:
 fromJsonin interfaceJsonService- Type Parameters:
 T- the object type- Parameters:
 input- the input streamclazz- the object class- Returns:
 - the newly created object
 - Throws:
 IOException- when there is a parsing error
 - 
fromJson
Description copied from interface:JsonServiceRead JSON into a java object.- Specified by:
 fromJsonin interfaceJsonService- Type Parameters:
 T- the object type- Parameters:
 input- the input streamtype- the runtime type of the object- Returns:
 - the newly created object
 - Throws:
 IOException- when there is a parsing error
 
 -