Package com.yahoo.vespa.http.client.core
Class JsonReader
- java.lang.Object
-
- com.yahoo.vespa.http.client.core.JsonReader
-
public class JsonReader extends Object
Reads a stream of json documents and sends them to feedClient.- Author:
- dybis
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
read(InputStream inputStream, FeedClient feedClient, AtomicInteger numSent)
Process one inputstream and send all documents to feedclient.
-
-
-
Method Detail
-
read
public static void read(InputStream inputStream, FeedClient feedClient, AtomicInteger numSent)
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.
-
-