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. UsesJsonParser
to navigate through json string.- Author:
- Roman Grigoriadi
-
-
Field Summary
-
Fields inherited from class org.eclipse.yasson.internal.ProcessingContext
jsonbContext, NULL
-
-
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> T
deserialize(Class<T> clazz, javax.json.stream.JsonParser parser)
<T> T
deserialize(Type type, javax.json.stream.JsonParser parser)
CurrentItem<?>
getCurrent()
Get currently processed json item.void
setCurrent(CurrentItem<?> current)
Set currently processed item.-
Methods inherited from class org.eclipse.yasson.internal.ProcessingContext
getJsonbContext, getMappingContext
-
-
-
-
Constructor Detail
-
Unmarshaller
public Unmarshaller(JsonbContext jsonbContext)
Creates instance of unmarshaller.- Parameters:
jsonbContext
- context to use
-
-
Method Detail
-
deserialize
public <T> T deserialize(Class<T> clazz, javax.json.stream.JsonParser parser)
- Specified by:
deserialize
in interfacejavax.json.bind.serializer.DeserializationContext
-
deserialize
public <T> T deserialize(Type type, javax.json.stream.JsonParser parser)
- Specified by:
deserialize
in interfacejavax.json.bind.serializer.DeserializationContext
-
getCurrent
public CurrentItem<?> getCurrent()
Get currently processed json item.- Returns:
- current item
-
setCurrent
public void setCurrent(CurrentItem<?> current)
Set currently processed item.- Parameters:
current
- current item
-
-