Class Unmarshaller

  • All Implemented Interfaces:
    javax.json.bind.serializer.DeserializationContext

    public class Unmarshaller
    extends ProcessingContext
    implements javax.json.bind.serializer.DeserializationContext
    JSONB unmarshaller. Uses JsonParser to navigate through json string.
    Author:
    Roman Grigoriadi
    • 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 interface javax.json.bind.serializer.DeserializationContext
      • deserialize

        public <T> T deserialize​(Type type,
                                 javax.json.stream.JsonParser parser)
        Specified by:
        deserialize in interface javax.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