Class JsonNodeJsonParser
java.lang.Object
com.github.marschall.jsonnodereader.JsonNodeJsonParser
- All Implemented Interfaces:
JsonParser
,Closeable
,AutoCloseable
A Jakarta
JsonParser
that works on a Jackson JsonNode
.-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.json.stream.JsonParser
JsonParser.Event
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.json.stream.JsonParser
getArrayStream, getObjectStream, getValueStream
-
Constructor Details
-
JsonNodeJsonParser
Initializes aJsonNodeJsonParser
.- Parameters:
root
- the root node, must be an array or object, notnull
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceJsonParser
-
next
- Specified by:
next
in interfaceJsonParser
-
getString
- Specified by:
getString
in interfaceJsonParser
-
isIntegralNumber
public boolean isIntegralNumber()- Specified by:
isIntegralNumber
in interfaceJsonParser
-
getInt
public int getInt()- Specified by:
getInt
in interfaceJsonParser
-
getLong
public long getLong()- Specified by:
getLong
in interfaceJsonParser
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceJsonParser
-
getLocation
- Specified by:
getLocation
in interfaceJsonParser
-
currentEvent
- Specified by:
currentEvent
in interfaceJsonParser
-
getObject
- Specified by:
getObject
in interfaceJsonParser
-
getValue
- Specified by:
getValue
in interfaceJsonParser
-
getArray
- Specified by:
getArray
in interfaceJsonParser
-
skipArray
public void skipArray()- Specified by:
skipArray
in interfaceJsonParser
-
skipObject
public void skipObject()- Specified by:
skipObject
in interfaceJsonParser
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceJsonParser
-