com.android.ddmlib
Interface IShellOutputReceiver

All Known Implementing Classes:
CollectingOutputReceiver, InstrumentationResultParser, MultiLineReceiver, NullOutputReceiver

public interface IShellOutputReceiver

Classes which implement this interface provide methods that deal with out from a remote shell command on a device/emulator.


Method Summary
 void addOutput(byte[] data, int offset, int length)
          Called every time some new data is available.
 void flush()
          Called at the end of the process execution (unless the process was canceled).
 boolean isCancelled()
          Cancel method to stop the execution of the remote shell command.
 

Method Detail

addOutput

void addOutput(byte[] data,
               int offset,
               int length)
Called every time some new data is available.

Parameters:
data - The new data.
offset - The offset at which the new data starts.
length - The length of the new data.

flush

void flush()
Called at the end of the process execution (unless the process was canceled). This allows the receiver to terminate and flush whatever data was not yet processed.


isCancelled

boolean isCancelled()
Cancel method to stop the execution of the remote shell command.

Returns:
true to cancel the execution of the command.


Copyright © 2008-2012. All Rights Reserved.