Class StreamMonitor

    • Constructor Detail

      • StreamMonitor

        public StreamMonitor​(InputStream in,
                             Consumer<String> inputHandler)
        Constructor.
        Parameters:
        in - stream to read from
        inputHandler - all characters read from in will be forwarded line by line (without the newline) to this handler.