Class RewindableJsonParser

  • All Implemented Interfaces:
    jakarta.json.stream.JsonParser, Closeable, AutoCloseable

    public class RewindableJsonParser
    extends Object
    implements jakarta.json.stream.JsonParser
    • Field Detail

      • delegate

        private final jakarta.json.stream.JsonParser delegate
      • last

        private jakarta.json.stream.JsonParser.Event last
    • Constructor Detail

      • RewindableJsonParser

        public RewindableJsonParser​(jakarta.json.stream.JsonParser delegate)
    • Method Detail

      • getLast

        public jakarta.json.stream.JsonParser.Event getLast()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface jakarta.json.stream.JsonParser
      • next

        public jakarta.json.stream.JsonParser.Event next()
        Specified by:
        next in interface jakarta.json.stream.JsonParser
      • getString

        public String getString()
        Specified by:
        getString in interface jakarta.json.stream.JsonParser
      • isIntegralNumber

        public boolean isIntegralNumber()
        Specified by:
        isIntegralNumber in interface jakarta.json.stream.JsonParser
      • getInt

        public int getInt()
        Specified by:
        getInt in interface jakarta.json.stream.JsonParser
      • getLong

        public long getLong()
        Specified by:
        getLong in interface jakarta.json.stream.JsonParser
      • getBigDecimal

        public BigDecimal getBigDecimal()
        Specified by:
        getBigDecimal in interface jakarta.json.stream.JsonParser
      • getLocation

        public jakarta.json.stream.JsonLocation getLocation()
        Specified by:
        getLocation in interface jakarta.json.stream.JsonParser
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface jakarta.json.stream.JsonParser
      • getObject

        public jakarta.json.JsonObject getObject()
        Specified by:
        getObject in interface jakarta.json.stream.JsonParser
      • getValue

        public jakarta.json.JsonValue getValue()
        Specified by:
        getValue in interface jakarta.json.stream.JsonParser
      • getArray

        public jakarta.json.JsonArray getArray()
        Specified by:
        getArray in interface jakarta.json.stream.JsonParser
      • getArrayStream

        public Stream<jakarta.json.JsonValue> getArrayStream()
        Specified by:
        getArrayStream in interface jakarta.json.stream.JsonParser
      • getObjectStream

        public Stream<Map.Entry<String,​jakarta.json.JsonValue>> getObjectStream()
        Specified by:
        getObjectStream in interface jakarta.json.stream.JsonParser
      • getValueStream

        public Stream<jakarta.json.JsonValue> getValueStream()
        Specified by:
        getValueStream in interface jakarta.json.stream.JsonParser
      • skipArray

        public void skipArray()
        Specified by:
        skipArray in interface jakarta.json.stream.JsonParser
      • skipObject

        public void skipObject()
        Specified by:
        skipObject in interface jakarta.json.stream.JsonParser