Class AsyncStreamReader

  • All Implemented Interfaces:
    Runnable

    public class AsyncStreamReader
    extends Object
    implements Runnable
    A StreamReader to read the input stream as Reader.
    • Constructor Detail

      • AsyncStreamReader

        public AsyncStreamReader​(InputStream in)
        The constructor with the reader as parameter.
        Parameters:
        in - the stream to read.
    • Method Detail

      • run

        public void run()
        The transfer method as run implementation.
        Specified by:
        run in interface Runnable
      • getOutput

        public List<String> getOutput()
        Gets the result.
        Returns:
        the data as List of lines.