Package org.eclipse.yasson.internal
Class Unmarshaller
- java.lang.Object
-
- org.eclipse.yasson.internal.ProcessingContext
-
- org.eclipse.yasson.internal.Unmarshaller
-
- All Implemented Interfaces:
javax.json.bind.serializer.DeserializationContext
public class Unmarshaller extends ProcessingContext implements javax.json.bind.serializer.DeserializationContext
JSONB unmarshaller. UsesJsonParserto navigate through json string.
-
-
Constructor Summary
Constructors Constructor Description Unmarshaller(JsonbContext jsonbContext)Creates instance of unmarshaller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tdeserialize(java.lang.Class<T> clazz, javax.json.stream.JsonParser parser)<T> Tdeserialize(java.lang.reflect.Type type, javax.json.stream.JsonParser parser)-
Methods inherited from class org.eclipse.yasson.internal.ProcessingContext
addProcessedObject, getJsonbContext, getMappingContext, removeProcessedObject
-
-
-
-
Constructor Detail
-
Unmarshaller
public Unmarshaller(JsonbContext jsonbContext)
Creates instance of unmarshaller.- Parameters:
jsonbContext- context to use
-
-
Method Detail
-
deserialize
public <T> T deserialize(java.lang.Class<T> clazz, javax.json.stream.JsonParser parser)- Specified by:
deserializein interfacejavax.json.bind.serializer.DeserializationContext
-
deserialize
public <T> T deserialize(java.lang.reflect.Type type, javax.json.stream.JsonParser parser)- Specified by:
deserializein interfacejavax.json.bind.serializer.DeserializationContext
-
-