Class CustomizeJsonParser
java.lang.Object
com.google.api.client.json.CustomizeJsonParser
Beta Customizes the behavior of a JSON parser.
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.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleUnrecognizedKey(Object context, String key) Called when the given unrecognized key is encountered in the given context object.newInstanceForArray(Object context, Field field) Returns a new instance value for the given field in the given context object for a JSON array ornullfor the default behavior.newInstanceForObject(Object context, Class<?> fieldClass) Returns a new instance value for the given field class in the given context object for JSON Object ornullfor the default behavior.booleanReturns whether to stop parsing at the given key of the given context object.
-
Constructor Details
-
CustomizeJsonParser
public CustomizeJsonParser()
-
-
Method Details
-
stopAt
-
handleUnrecognizedKey
-
newInstanceForArray
Returns a new instance value for the given field in the given context object for a JSON array ornullfor the default behavior. -
newInstanceForObject
-