Package com.yahoo.vespa.http.client.core
Class JsonReader
java.lang.Object
com.yahoo.vespa.http.client.core.JsonReader
Reads a stream of json documents and sends them to feedClient.
- Author:
- dybis
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
read
(InputStream inputStream, FeedClient feedClient, AtomicInteger numSent) Process one inputstream and send all documents to feedclient.
-
Method Details
-
read
Process one inputstream and send all documents to feedclient.- Parameters:
inputStream
- source of array of json document.feedClient
- where data is sent.numSent
- counter to be incremented for every document streamed.
-