Interface JsonbParser

All Superinterfaces:
AutoCloseable, 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

    Modifier and Type
    Method
    Description
    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
    Moves parser cursor to START_OBJECT or START_ARRAY.
    javax.json.stream.JsonParser.Event
    Moves parser cursor to any JSON value.
    void
    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 Details

    • 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.
    • getCurrentLevel

      JsonbRiParser.LevelContext getCurrentLevel()
      Current level of JsonbRiParser.
      Returns:
      Current level.
    • skipJsonStructure

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