Package generic.concurrent.io

# Class IOResult

java.lang.Object
generic.concurrent.io.IOResult

All Implemented Interfaces:
  `Runnable`

public class IOResult extends Object implements Runnable
Class to pass to a thread pool that will consume all output from an external process. This is a `Runnable` that get submitted to a thread pool. This class records the data it reads

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `THREAD_POOL_NAME`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IOResult(InputStream input)`
  `IOResult(Throwable inception, InputStream input)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<String>`
  `getOutput()`
  `String`
  `getOutputAsString()`
  `void`
  `run()`
  `void`
  `setConsumer(Consumer<String> consumer)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### THREAD_POOL_NAME

    public static final String THREAD_POOL_NAME
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### IOResult

    public IOResult(InputStream input)

  - ### IOResult

    public IOResult(Throwable inception, InputStream input)

- ## Method Details

  - ### setConsumer

    public void setConsumer(Consumer<String> consumer)

  - ### getOutputAsString

    public String getOutputAsString()

  - ### getOutput

    public List<String> getOutput()

  - ### run

    public void run()
    Specified by:
      `run` in interface `Runnable`