@Beta public class CustomizeJsonParser extends Object
Beta
All methods have a default trivial implementation, so subclasses need only implement the methods whose behavior needs customization.
Implementation has no fields and therefore thread-safe, but sub-classes are not necessarily thread-safe.
| Constructor and Description |
|---|
CustomizeJsonParser()
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleUnrecognizedKey(Object
Called when the given unrecognized key is encountered in the given context object.
|
Collection |
newInstanceForArray(Object
Returns a new instance value for the given field in the given context object for a JSON array or
null for the default behavior.
|
Object |
newInstanceForObject(Object
Returns a new instance value for the given field class in the given context object for JSON Object or
null for the default behavior.
|
boolean |
stopAt(Object
Returns whether to stop parsing at the given key of the given context object.
|
public boolean stopAt(Objectcontext, String key)
public void handleUnrecognizedKey(Objectcontext, String key)
public Collection<Object > newInstanceForArray(Object context, Field field)
null for the default behavior.