public abstract static class RealAndroidDevice.ErrorParsingReceiver
extends com.android.ddmlib.MultiLineReceiver
IShellOutputReceiver
with helper functions to
parse output lines and figure out if a call to IDevice.executeShellCommand(String,
com.android.ddmlib.IShellOutputReceiver)
succeeded.Constructor and Description |
---|
ErrorParsingReceiver() |
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage() |
boolean |
isCancelled() |
protected abstract String |
matchForError(String line)
Look for an error message in
line . |
void |
processNewLines(String[] lines) |
@Nullable protected abstract String matchForError(String line)
line
.line
- line
is indicative of an error, null
otherwise.public void processNewLines(String[] lines)
processNewLines
in class com.android.ddmlib.MultiLineReceiver
public boolean isCancelled()