public static enum GrabProcessOutput.Wait extends java.lang.Enum<GrabProcessOutput.Wait>
Enum Constant and Description |
---|
ASYNC
Doesn't wait for the exec to complete.
|
WAIT_FOR_PROCESS
This waits for the process to finish.
|
WAIT_FOR_READERS
This waits for the process to finish and for the stdout/stderr
threads to complete.
|
Modifier and Type | Method and Description |
---|---|
static GrabProcessOutput.Wait |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GrabProcessOutput.Wait[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrabProcessOutput.Wait ASYNC
public static final GrabProcessOutput.Wait WAIT_FOR_PROCESS
GrabProcessOutput.grabProcessOutput(java.lang.Process, com.android.utils.GrabProcessOutput.Wait, com.android.utils.GrabProcessOutput.IProcessOutput)
returns the
error code from the process.
In some rare cases and depending on the OS, the process might not have finished dumping data into stdout/stderr.
Use this when you don't particularly care for the output but instead care for the return code of the executed process.public static final GrabProcessOutput.Wait WAIT_FOR_READERS
This waits for the process to finish and for the stdout/stderr
threads to complete.
In this mode, GrabProcessOutput.grabProcessOutput(java.lang.Process, com.android.utils.GrabProcessOutput.Wait, com.android.utils.GrabProcessOutput.IProcessOutput)
returns the
error code from the process.
public static GrabProcessOutput.Wait[] values()
for (GrabProcessOutput.Wait c : GrabProcessOutput.Wait.values()) System.out.println(c);
public static GrabProcessOutput.Wait valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null