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, waitMethods 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:
hasNextin interfaceJsonParser
-
next
- Specified by:
nextin interfaceJsonParser
-
getString
- Specified by:
getStringin interfaceJsonParser
-
isIntegralNumber
public boolean isIntegralNumber()- Specified by:
isIntegralNumberin interfaceJsonParser
-
getInt
public int getInt()- Specified by:
getIntin interfaceJsonParser
-
getLong
public long getLong()- Specified by:
getLongin interfaceJsonParser
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceJsonParser
-
getLocation
- Specified by:
getLocationin interfaceJsonParser
-
currentEvent
- Specified by:
currentEventin interfaceJsonParser
-
getObject
- Specified by:
getObjectin interfaceJsonParser
-
getValue
- Specified by:
getValuein interfaceJsonParser
-
getArray
- Specified by:
getArrayin interfaceJsonParser
-
skipArray
public void skipArray()- Specified by:
skipArrayin interfaceJsonParser
-
skipObject
public void skipObject()- Specified by:
skipObjectin interfaceJsonParser
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceJsonParser
-