Interface JsonbParser

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, javax.json.stream.JsonParser
    All Known Implementing Classes:
    JsonbRiParser, UserDeserializerParser

    public interface JsonbParser
    extends javax.json.stream.JsonParser
    Jsonb parsing helper methods on top of JSON-P parser.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.json.stream.JsonParser

        javax.json.stream.JsonParser.Event
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      JsonbRiParser.LevelContext getCurrentLevel()
      Current level of JsonbRiParser.
      void moveTo​(javax.json.stream.JsonParser.Event event)
      Moves parser to required event, if current event is equal to required does nothing.
      javax.json.stream.JsonParser.Event moveToStartStructure()
      Moves parser cursor to START_OBJECT or START_ARRAY.
      javax.json.stream.JsonParser.Event moveToValue()
      Moves parser cursor to any JSON value.
      void skipJsonStructure()
      Skips a value or a structure.
      • Methods inherited from interface javax.json.stream.JsonParser

        close, getArray, getArrayStream, getBigDecimal, getInt, getLocation, getLong, getObject, getObjectStream, getString, getValue, getValueStream, hasNext, isIntegralNumber, next, skipArray, skipObject
    • Method Detail

      • moveTo

        void moveTo​(javax.json.stream.JsonParser.Event event)
        Moves parser to required event, if current event is equal to required does nothing.
        Parameters:
        event - Required event.
      • moveToValue

        javax.json.stream.JsonParser.Event moveToValue()
        Moves parser cursor to any JSON value.
        Returns:
        Event.
      • moveToStartStructure

        javax.json.stream.JsonParser.Event moveToStartStructure()
        Moves parser cursor to START_OBJECT or START_ARRAY.
        Returns:
        Event.
      • skipJsonStructure

        void skipJsonStructure()
        Skips a value or a structure. If current event is START_ARRAY or START_OBJECT, whole structure is skipped to end.