java.lang.Object
io.helidon.json.JsonParserBase
- All Implemented Interfaces:
JsonParser
Base implementation of
JsonParser.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected default constructor for subclasses. -
Method Summary
Modifier and TypeMethodDescriptionReads a JSON array from the current position.Reads a JSON object from the current position.Reads a complete JSON value from the current position.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.json.JsonParser
checkNull, clearMark, createException, createException, currentByte, hasNext, mark, nextToken, readBigDecimal, readBigInteger, readBinary, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readJsonNumber, readJsonString, readLong, readShort, readString, readStringAsHash, resetToMark, skip
-
Constructor Details
-
JsonParserBase
protected JsonParserBase()Protected default constructor for subclasses.
-
-
Method Details
-
readJsonValue
Description copied from interface:JsonParserReads a complete JSON value from the current position.This method parses and returns the next complete JSON value (object, array, string, number, boolean, or null) from the current parser position.
- Specified by:
readJsonValuein interfaceJsonParser- Returns:
- the parsed JsonValue
- See Also:
-
readJsonObject
Description copied from interface:JsonParserReads a JSON object from the current position.This method expects the next token to be an object start ('{') and parses the complete object including all nested values.
- Specified by:
readJsonObjectin interfaceJsonParser- Returns:
- the parsed JsonObject
- See Also:
-
readJsonArray
Description copied from interface:JsonParserReads a JSON array from the current position.This method expects the next token to be an array start ('[') and parses the complete array including all nested values.
- Specified by:
readJsonArrayin interfaceJsonParser- Returns:
- the parsed JsonArray
- See Also:
-