public abstract class NavigableJsonInputAdapter extends Object
Constructor and Description |
---|
NavigableJsonInputAdapter() |
Modifier and Type | Method and Description |
---|---|
abstract com.fasterxml.jackson.core.JsonParser |
createParser(com.fasterxml.jackson.core.JsonFactory factory)
Creates a parser from given factory
|
abstract boolean |
isAttributeName(JsonPathCursor cursor)
This method verifies that the underlying input currently points
to an attribute name of a Json object.
|
abstract JsonValue |
parseValue(JsonReducedValueParser parser,
int offset)
Tries to parse a single JsonValue from the input.
|
abstract int |
position()
Gives the current position of the cursor.
|
abstract void |
position(int position)
Sets the position of underlying data input.
|
abstract void |
reset()
Resets the read cursor.
|
public abstract void position(int position)
position
- public abstract int position()
public abstract void reset()
public abstract boolean isAttributeName(JsonPathCursor cursor)
JsonPathCursor.getCurrent()
method is called to retrieve the attribute name.
The cursor is moved to the end of the attribute name, after
quote character if successful. Otherwise cursor might be in
any position further forward than where it was prior to this
method.cursor
- true
if the given attributeName matches the one
in underlying data inputpublic abstract JsonValue parseValue(JsonReducedValueParser parser, int offset) throws IOException
offset
must be pointing to the beginning of a scalar Json value.parser
- offset
- IOException
- if offset is pointing to a non-scalar
or invalid Json inputpublic abstract com.fasterxml.jackson.core.JsonParser createParser(com.fasterxml.jackson.core.JsonFactory factory) throws IOException
factory
- IOException
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.