public class

StreamGobbler

extends Thread
java.lang.Object
   ↳ java.lang.Thread
     ↳ uk.ac.imperial.presage2.core.cli.run.StreamGobbler

Class Overview

StreamGobbler: Consumes an InputStream and redirects it to a given OutputStream or discards it. This is used to ensure subprocesses properly terminate (see http://kylecartmell.com/?p=9).

Summary

[Expand]
Inherited Constants
From class java.lang.Thread
Public Constructors
StreamGobbler(InputStream is)
StreamGobbler(InputStream is, OutputStream os)
Public Methods
void run()
[Expand]
Inherited Methods
From class java.lang.Thread
From class java.lang.Object
From interface java.lang.Runnable

Public Constructors

public StreamGobbler (InputStream is)

public StreamGobbler (InputStream is, OutputStream os)

Public Methods

public void run ()

Since: API Level