Class JsonReader


  • public class JsonReader
    extends Object
    Reads a stream of json documents and sends them to feedClient.
    Author:
    dybis
    • 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.