Package co.arago.util.json.streaming
Class AbstractJsonStreamParser.CallbackJsonPathListener
- java.lang.Object
-
- co.arago.util.json.streaming.AbstractJsonStreamParser.CallbackJsonPathListener
-
- All Implemented Interfaces:
org.jsfr.json.JsonPathListener
- Enclosing class:
- AbstractJsonStreamParser
protected class AbstractJsonStreamParser.CallbackJsonPathListener extends java.lang.Object implements org.jsfr.json.JsonPathListenerListener class for JsonPath matches.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCallbackJsonPathListener(java.lang.String field)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValue(java.lang.Object value, org.jsfr.json.ParsingContext context)Return chunks of data to the callback interface.
-
-
-
Constructor Detail
-
CallbackJsonPathListener
protected CallbackJsonPathListener(java.lang.String field)
Constructor- Parameters:
field- Name of the data that is returned viaJsonStreamCallback.dataCallback(String, Object)inonValue(Object, ParsingContext). If this is null, the name of the currentParsingContextor just 'data' will be used.
-
-
Method Detail
-
onValue
public void onValue(java.lang.Object value, org.jsfr.json.ParsingContext context)Return chunks of data to the callback interface.- Specified by:
onValuein interfaceorg.jsfr.json.JsonPathListener- Parameters:
value- the value of json node that matches bound JsonPathcontext- parsing context
-
-