|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.utils.GrabProcessOutput
public class GrabProcessOutput
Nested Class Summary | |
---|---|
static interface |
GrabProcessOutput.IProcessOutput
|
static class |
GrabProcessOutput.Wait
|
Constructor Summary | |
---|---|
GrabProcessOutput()
|
Method Summary | |
---|---|
static int |
grabProcessOutput(java.lang.Process process,
GrabProcessOutput.Wait waitMode,
GrabProcessOutput.IProcessOutput output)
Get the stderr/stdout outputs of a process and return when the process is done. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrabProcessOutput()
Method Detail |
---|
public static int grabProcessOutput(@NonNull java.lang.Process process, GrabProcessOutput.Wait waitMode, @Nullable GrabProcessOutput.IProcessOutput output) throws java.lang.InterruptedException
process
- The process to get the output from.output
- Optional object to capture stdout/stderr.
Note that on Windows capturing the output is not optional. If output is null
the stdout/stderr will be captured and discarded.waitMode
- Whether to wait for the process and/or the readers to finish.
java.lang.InterruptedException
- if Process.waitFor()
was interrupted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |