# Uses of Interface
com.norconex.commons.lang.io.InputStreamListener

Packages that use InputStreamListener
Package
Description
com.norconex.commons.lang.exec
Utility classes related to process/code execution.
com.norconex.commons.lang.io
Utility classes when dealing with files and directories.

- ## Uses of InputStreamListener in com.norconex.commons.lang.exec

  Methods in com.norconex.commons.lang.exec that return types with arguments of type InputStreamListener
  Modifier and Type
  Method
  Description
  `List<InputStreamListener>`
  SystemCommand.`getErrorListeners()`
  Gets an unmodifiable list of error (STDERR) listeners.
  `List<InputStreamListener>`
  SystemCommand.`getOutputListeners()`
  Gets an unmodifiable list of output (STDOUT) listeners.
  Methods in com.norconex.commons.lang.exec with parameters of type InputStreamListener
  Modifier and Type
  Method
  Description
  `void`
  SystemCommand.`addErrorListener(InputStreamListener listener)`
  Adds an error (STDERR) listener to this system command.
  `void`
  SystemCommand.`addOutputListener(InputStreamListener listener)`
  Adds an output (STDOUT) listener to this system command.
  `void`
  SystemCommand.`removeErrorListener(InputStreamListener listener)`
  Removes an error (STDERR) listener.
  `void`
  SystemCommand.`removeOutputListener(InputStreamListener listener)`
  Removes an output (STDOUT) listener.
  `static int`
  ExecUtil.`watchProcess(Process process, InputStreamListener listener)`
  Watches a running process.
  `static int`
  ExecUtil.`watchProcess(Process process, InputStreamListener[] listeners)`
  Watches a running process.
  `static int`
  ExecUtil.`watchProcess(Process process, InputStreamListener[] outputListeners, InputStreamListener[] errorListeners)`
  Watches a running process.
  `static int`
  ExecUtil.`watchProcess(Process process, InputStreamListener outputListener, InputStreamListener errorListener)`
  Watches a running process.
  `static int`
  ExecUtil.`watchProcess(Process process, InputStream input, InputStreamListener[] outputListeners, InputStreamListener[] errorListeners)`
  Watches a running process while sending data to its STDIN.
  `static void`
  ExecUtil.`watchProcessAsync(Process process, InputStreamListener[] outputListeners, InputStreamListener[] errorListeners)`
  Watches process output.
  `static void`
  ExecUtil.`watchProcessAsync(Process process, InputStreamListener outputListener, InputStreamListener errorListener)`
  Watches process output.
  `static void`
  ExecUtil.`watchProcessAsync(Process process, InputStream input, InputStreamListener[] outputListeners, InputStreamListener[] errorListeners)`
  Watches process output while sending data to its STDIN.

- ## Uses of InputStreamListener in com.norconex.commons.lang.io

  Subinterfaces of InputStreamListener in com.norconex.commons.lang.io
  Modifier and Type
  Interface
  Description
  `interface`
  `IInputStreamListener`
  Deprecated.
  Use `InputStreamListener` instead.
  Classes in com.norconex.commons.lang.io that implement InputStreamListener
  Modifier and Type
  Class
  Description
  `class`
  `InputStreamLineListener`
  Listener that is being notified every time a line is processed from a given stream.
  Methods in com.norconex.commons.lang.io that return InputStreamListener
  Modifier and Type
  Method
  Description
  `InputStreamListener[]`
  InputStreamConsumer.`getStreamListeners()`
  Returns stream listeners.
  Methods in com.norconex.commons.lang.io with parameters of type InputStreamListener
  Modifier and Type
  Method
  Description
  `static void`
  InputStreamConsumer.`consume(InputStream input, int chunkSize, String type, InputStreamListener... listeners)`
  Convenience method for creasing a consumer instance, starting it, and waiting for it to complete.
  `static void`
  InputStreamConsumer.`consume(InputStream input, String type, InputStreamListener... listeners)`
  Convenience method for creating a consumer instance and starting it.
  `static void`
  InputStreamConsumer.`consumeAndWait(InputStream input, int chunkSize, String type, InputStreamListener... listeners)`
  Convenience method for creasing a consumer instance, starting it, and waiting for it to complete.
  `static void`
  InputStreamConsumer.`consumeAndWait(InputStream input, String type, InputStreamListener... listeners)`
  Convenience method for creasing a consumer instance and starting it.
  Constructors in com.norconex.commons.lang.io with parameters of type InputStreamListener
  Modifier
  Constructor
  Description
  ``
  `InputStreamConsumer(InputStream input, int chunkSize, String type, InputStreamListener... listeners)`
  Constructor.
  ``
  `InputStreamConsumer(InputStream input, String type, InputStreamListener... listeners)`
  Constructor.