public class StringNavigableJsonAdapter extends NavigableJsonInputAdapter
| Constructor and Description |
|---|
StringNavigableJsonAdapter(String source,
int initialOffset) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.core.JsonParser |
createParser(com.fasterxml.jackson.core.JsonFactory factory)
Creates a parser from given factory
|
boolean |
isAttributeName(JsonPathCursor cursor)
This method verifies that the underlying input currently points
to an attribute name of a Json object.
|
JsonValue |
parseValue(JsonReducedValueParser parser,
int offset)
Tries to parse a single JsonValue from the input.
|
int |
position()
Gives the current position of the cursor.
|
void |
position(int position)
Sets the position of underlying data input.
|
void |
reset()
Resets the read cursor.
|
public StringNavigableJsonAdapter(String source, int initialOffset)
public void position(int position)
NavigableJsonInputAdapterposition in class NavigableJsonInputAdapterpublic int position()
NavigableJsonInputAdapterposition in class NavigableJsonInputAdapterpublic void reset()
NavigableJsonInputAdapterreset in class NavigableJsonInputAdapterpublic boolean isAttributeName(JsonPathCursor cursor)
NavigableJsonInputAdapterJsonPathCursor.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.isAttributeName in class NavigableJsonInputAdaptertrue if the given attributeName matches the one
in underlying data inputpublic JsonValue parseValue(JsonReducedValueParser parser, int offset) throws IOException
NavigableJsonInputAdapteroffset
must be pointing to the beginning of a scalar Json value.parseValue in class NavigableJsonInputAdapterIOException - if offset is pointing to a non-scalar
or invalid Json inputpublic com.fasterxml.jackson.core.JsonParser createParser(com.fasterxml.jackson.core.JsonFactory factory)
throws IOException
NavigableJsonInputAdaptercreateParser in class NavigableJsonInputAdapterIOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.