Package co.arago.util.json.streaming
Class AbstractJsonStreamParser
- java.lang.Object
-
- co.arago.util.json.AbstractJsonParser
-
- co.arago.util.json.streaming.AbstractJsonStreamParser
-
- Direct Known Subclasses:
AccumulatingJsonStreamParser,InputStreamJsonParser
public abstract class AbstractJsonStreamParser extends AbstractJsonParser
Basic class for a parser that can stream and execute callbacks on matching JsonPaths.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractJsonStreamParser.CallbackJsonPathListenerListener class for JsonPath matches.static classAbstractJsonStreamParser.Conf<T extends AbstractJsonStreamParser.Conf<T>>
-
Field Summary
Fields Modifier and Type Field Description protected JsonStreamCallbackcallback-
Fields inherited from class co.arago.util.json.AbstractJsonParser
jsonCuts, jsonSurferTool
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJsonStreamParser(AbstractJsonStreamParser.Conf<?> builder)Protected constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jsfr.json.SurfingConfigurationcreateSurfingConfiguration()
-
-
-
Field Detail
-
callback
protected final JsonStreamCallback callback
-
-
Constructor Detail
-
AbstractJsonStreamParser
protected AbstractJsonStreamParser(AbstractJsonStreamParser.Conf<?> builder)
Protected constructor.- Parameters:
builder- The builder for this class
-
-
Method Detail
-
createSurfingConfiguration
protected org.jsfr.json.SurfingConfiguration createSurfingConfiguration()
- Returns:
- A SurfingConfiguration built from
AbstractJsonParser.jsonCuts. - See Also:
AbstractJsonStreamParser.CallbackJsonPathListener
-
-