JsonParserDelegate that allows use of
TokenFilter for outputting a subset of content that
is visible to caller
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | _allowMultipleMatches
Flag that determines whether filtering will continue after the first
match is indicated or not: if `false`, output is based on just the first
full match (returning |
| protected JsonToken | _currToken
Last token retrieved via |
| protected TokenFilterContext | _exposedContext
In cases where |
| protected TokenFilterContext | _headContext
During traversal this is the actual "open" parse tree, which sometimes
is the same as |
| protected TokenFilter. | _inclusion
Flag that determines whether path leading up to included content should also be automatically included or not. |
| protected TokenFilter | _itemFilter
State that applies to the item within container, used where applicable. |
| protected JsonToken | _lastClearedToken
Last cleared token, if any: that is, value that was in
effect when |
| protected int | _matchCount
Number of tokens for which |
| protected TokenFilter | rootFilter
Object consulted to determine whether to write parts of content generator is asked to write or not. |
| Access | Constructor and Description |
|---|---|
| public | FilteringParserDelegate(JsonParser p, TokenFilter f, boolean includePath, boolean allowMultipleMatches)
Deprecated
|
| public | FilteringParserDelegate(JsonParser
Parser to delegate calls to p, TokenFilter Filter to use f, TokenFilter.Definition of inclusion criteria inclusion,Whether to allow multiple matches allowMultipleMatches)
|
| Modifier and Type | Method and Description |
|---|---|
| protected JsonStreamContext | |
| private JsonToken | |
| protected final JsonToken | |
| protected final JsonToken | |
| private final boolean | |
| public void | clearCurrentToken()
Overrides com. Method called to "consume" the current token by effectively
removing it so that |
| public JsonLocation | currentLocation()
Overrides com. Method that returns location of the last processed input unit (character or byte) from the input; usually for error reporting purposes. |
| public String | currentName()
Overrides com. Method that can be called to get the name associated with
the current token: for |
| public JsonToken | currentToken()
Overrides com. Accessor to find which token parser currently points to, if any; null will be returned if none. |
| public final int | currentTokenId()
Overrides com. Method similar to |
| public JsonLocation | currentTokenLocation()
Overrides com. Method that return the starting location of the current (most recently returned) token; that is, the position of the first input unit (character or byte) from input that starts the current token. |
| public BigInteger | getBigIntegerValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public byte[] | getBinaryValue(Base64Variant
Expected variant of base64 encoded
content (see b64variant)Base64Variants for definitions
of "standard" variants).Overrides com. Method that can be used to read (and consume -- results may not be accessible using other methods after the call) base64-encoded binary data included in the current textual JSON value. |
| public boolean | getBooleanValue()
Overrides com. Convenience accessor that can be called when the current
token is |
| public byte | getByteValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public JsonLocation | getCurrentLocation()
Overrides com.
Deprecated
Deprecated alias for |
| public String | getCurrentName()
Overrides com.
Deprecated
Deprecated alias of |
| public JsonToken | getCurrentToken()
Overrides com.
Deprecated
Alias for |
| public final int | getCurrentTokenId()
Overrides com.
Deprecated
Deprecated alias for |
| public BigDecimal | getDecimalValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public double | getDoubleValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public Object | getEmbeddedObject()
Overrides com. Accessor that can be called if (and only if) the current token
is |
| public TokenFilter | |
| public float | getFloatValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public int | getIntValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public JsonToken | getLastClearedToken()
Overrides com. Method that can be called to get the last token that was
cleared using |
| public long | getLongValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public int | Returns: Number of matchesAccessor for finding number of matches, where specific token and sub-tree starting (if structured type) are passed. |
| public JsonParser. | getNumberType()
Overrides com. If current token is of type
|
| public Number | getNumberValue()
Overrides com. Generic number value accessor method that will work for all kinds of numeric values. |
| public JsonStreamContext | getParsingContext()
Overrides com. Method that can be used to access current parsing context reader is in. There are 3 different types: root, array and object contexts, with slightly different available information. |
| public short | getShortValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public String | getText()
Overrides com. Method for accessing textual representation of the current token;
if no current token (before first call to |
| public char[] | getTextCharacters()
Overrides com. Method similar to |
| public int | getTextLength()
Overrides com. Accessor used with |
| public int | getTextOffset()
Overrides com. Accessor used with |
| public JsonLocation | getTokenLocation()
Overrides com.
Deprecated
Deprecated alias for |
| public boolean | getValueAsBoolean()
Overrides com. Method that will try to convert value of current token to a boolean. |
| public boolean | getValueAsBoolean(boolean
Default value to return if conversion to defaultValue)boolean is not possibleOverrides com. Method that will try to convert value of current token to a boolean. |
| public double | getValueAsDouble()
Overrides com. Method that will try to convert value of current token to a Java double. |
| public double | getValueAsDouble(double
Default value to return if conversion to defaultValue)double is not possibleOverrides com. Method that will try to convert value of current token to a Java double. |
| public int | getValueAsInt()
Overrides com. Method that will try to convert value of current token to a
Java |
| public int | getValueAsInt(int
Default value to return if conversion to defaultValue)int is not possibleOverrides com. Method that will try to convert value of current token to a int. |
| public long | getValueAsLong()
Overrides com. Method that will try to convert value of current token to a long. |
| public long | getValueAsLong(long
Default value to return if conversion to defaultValue)long is not possibleOverrides com. Method that will try to convert value of current token to a long. |
| public String | getValueAsString()
Overrides com. Method that will try to convert value of current token to a
|
| public String | getValueAsString(String
Default value to return if conversion to defaultValue)String is not possibleOverrides com. Method that will try to convert value of current token to a
|
| public boolean | hasCurrentToken()
Overrides com. Method for checking whether parser currently points to a token (and data for that token is available). |
| public boolean | hasTextCharacters()
Overrides com. Method that can be used to determine whether calling of
|
| public final boolean | hasToken(JsonToken
Token to match t)Overrides com. Method that is functionally equivalent to:
|
| public boolean | hasTokenId(int
Token id to match (from (@link JsonTokenId}) id)Overrides com. Method that is functionally equivalent to:
|
| public boolean | isExpectedStartArrayToken()
Overrides com. Specialized accessor that can be used to verify that the current
token indicates start array (usually meaning that current token
is |
| public boolean | isExpectedStartObjectToken()
Overrides com. Similar to |
| public JsonToken | nextToken()
Overrides com. Main iteration method, which will advance stream enough to determine type of the next token, if any. |
| public JsonToken | nextValue()
Overrides com. Iteration method that will advance stream enough to determine type of the next token that is a value type (including JSON Array and Object start/end markers). |
| public void | overrideCurrentName(String
Name to use as the current name; may be null. name)Overrides com. Method that can be used to change what is considered to be the current (field) name. |
| public int | readBinaryValue(Base64Variant
base64 variant to use b64variant, OutputStream Output stream to use for passing decoded binary data out)Overrides com. Similar to |
| public JsonParser | skipChildren()
Overrides com. Need to override, re-implement similar to how method defined in
|