Package co.arago.util.json.streaming
Class InputStreamJsonParser
- java.lang.Object
-
- co.arago.util.json.AbstractJsonParser
-
- co.arago.util.json.streaming.AbstractJsonStreamParser
-
- co.arago.util.json.streaming.InputStreamJsonParser
-
public class InputStreamJsonParser extends AbstractJsonStreamParser
A json reader that receives data via an InputStream. Whenever a chunk of json data defined by jsonPath is ready to be processed it calls the callback with the chunk of JSON data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputStreamJsonParser.Builderstatic classInputStreamJsonParser.Conf<T extends InputStreamJsonParser.Conf<T>>-
Nested classes/interfaces inherited from class co.arago.util.json.streaming.AbstractJsonStreamParser
AbstractJsonStreamParser.CallbackJsonPathListener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jsfr.json.ResumableParserparserReference to the parser that is used here-
Fields inherited from class co.arago.util.json.streaming.AbstractJsonStreamParser
callback
-
Fields inherited from class co.arago.util.json.AbstractJsonParser
jsonCuts, jsonSurferTool
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInputStreamJsonParser(InputStreamJsonParser.Conf<?> builder)Protected constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStreamJsonParser.Conf<?>newBuilder(JsonStreamCallback callback)Get Builder-
Methods inherited from class co.arago.util.json.streaming.AbstractJsonStreamParser
createSurfingConfiguration
-
-
-
-
Constructor Detail
-
InputStreamJsonParser
protected InputStreamJsonParser(InputStreamJsonParser.Conf<?> builder)
Protected constructor- Parameters:
builder- The builder for this class.
-
-
Method Detail
-
newBuilder
public static InputStreamJsonParser.Conf<?> newBuilder(JsonStreamCallback callback)
Get Builder- Parameters:
callback- Callback for the matching keys (JsonPath) ofAbstractJsonParser.jsonCuts.- Returns:
- New instance of
InputStreamJsonParser.Builder
-
-