|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ddmlib.MultiLineReceiver
public abstract class MultiLineReceiver
Base implementation of IShellOutputReceiver, that takes the raw data coming from the
socket, and convert it into String objects.
processNewLines(String[]) which receives
new parsed lines as they become available.
| Constructor Summary | |
|---|---|
MultiLineReceiver()
|
|
| Method Summary | |
|---|---|
void |
addOutput(byte[] data,
int offset,
int length)
Called every time some new data is available. |
void |
done()
Terminates the process. |
void |
flush()
Called at the end of the process execution (unless the process was canceled). |
abstract void |
processNewLines(java.lang.String[] lines)
Called when new lines are being received by the remote process. |
void |
setTrimLine(boolean trim)
Set the trim lines flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.android.ddmlib.IShellOutputReceiver |
|---|
isCancelled |
| Constructor Detail |
|---|
public MultiLineReceiver()
| Method Detail |
|---|
public void setTrimLine(boolean trim)
trim - whether the lines are trimmed, or not.
public final void addOutput(byte[] data,
int offset,
int length)
IShellOutputReceiver
addOutput in interface IShellOutputReceiverdata - The new data.offset - The offset at which the new data starts.length - The length of the new data.public final void flush()
IShellOutputReceiver
flush in interface IShellOutputReceiverpublic void done()
processNewLines(String[]).
public abstract void processNewLines(java.lang.String[] lines)
lines - The array containing the new lines.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||