Package org.jgrapes.io.util
Class JsonReader
java.lang.Object
org.jgrapes.io.util.ManagedBufferStreamer
org.jgrapes.io.util.JsonReader
- All Implemented Interfaces:
InputConsumer
A
ManagedBufferStreamer that feeds the data to a JSON parser.When the data is fully parsed, it is made available by firing a
DataInput event.
- Since:
- 2.8
-
Constructor Summary
ConstructorsConstructorDescriptionJsonReader(com.fasterxml.jackson.databind.ObjectMapper mapper, Class<R> resultType, EventPipeline pipeline, Channel channel) Instantiates a new JSON reader.JsonReader(Class<R> resultType, EventPipeline pipeline, Channel channel) Instantiates a new JSON reader that uses a default object mapper. -
Method Summary
Methods inherited from class org.jgrapes.io.util.ManagedBufferStreamer
charset, feedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jgrapes.io.util.InputConsumer
feed
-
Constructor Details
-
JsonReader
public JsonReader(com.fasterxml.jackson.databind.ObjectMapper mapper, Class<R> resultType, EventPipeline pipeline, Channel channel) Instantiates a new JSON reader. -
JsonReader
Instantiates a new JSON reader that uses a default object mapper.
-