Class JsonReader


  • public class JsonReader
    extends java.lang.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​(java.io.InputStream inputStream, FeedClient feedClient, java.util.concurrent.atomic.AtomicInteger numSent)
      Process one inputstream and send all documents to feedclient.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • read

        public static void read​(java.io.InputStream inputStream,
                                FeedClient feedClient,
                                java.util.concurrent.atomic.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.