|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.ddmlib.CollectingOutputReceiver
public class CollectingOutputReceiver
A IShellOutputReceiver
which collects the whole shell output into one
String
.
Constructor Summary | |
---|---|
CollectingOutputReceiver()
|
|
CollectingOutputReceiver(java.util.concurrent.CountDownLatch commandCompleteLatch)
|
Method Summary | |
---|---|
void |
addOutput(byte[] data,
int offset,
int length)
Called every time some new data is available. |
void |
cancel()
Cancel the output collection |
void |
flush()
Called at the end of the process execution (unless the process was canceled). |
java.lang.String |
getOutput()
|
boolean |
isCancelled()
Cancel method to stop the execution of the remote shell command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectingOutputReceiver()
public CollectingOutputReceiver(java.util.concurrent.CountDownLatch commandCompleteLatch)
Method Detail |
---|
public java.lang.String getOutput()
public boolean isCancelled()
IShellOutputReceiver
isCancelled
in interface IShellOutputReceiver
public void cancel()
public void addOutput(byte[] data, int offset, int length)
IShellOutputReceiver
addOutput
in interface IShellOutputReceiver
data
- The new data.offset
- The offset at which the new data starts.length
- The length of the new data.public void flush()
IShellOutputReceiver
flush
in interface IShellOutputReceiver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |