Package com.android.ddmlib.log
Interface LogReceiver.ILogListener
-
- Enclosing class:
- LogReceiver
public static interface LogReceiver.ILogListener
Classes which implement this interface provide a method that deals withLogReceiver.LogEntry
objects coming from log service through aLogReceiver
.This interface provides two methods.
newEntry(com.android.ddmlib.log.LogReceiver.LogEntry)
provides a first level of parsing, extractingLogReceiver.LogEntry
objects out of the log service output.newData(byte[], int, int)
provides a way to receive the raw information coming directly from the log service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
newData(byte[] data, int offset, int length)
Sent when new raw data is coming from the log service.void
newEntry(LogReceiver.LogEntry entry)
Sent when a newLogReceiver.LogEntry
has been parsed by theLogReceiver
.
-
-
-
Method Detail
-
newEntry
void newEntry(LogReceiver.LogEntry entry)
Sent when a newLogReceiver.LogEntry
has been parsed by theLogReceiver
.- Parameters:
entry
- the new log entry.
-
newData
void newData(byte[] data, int offset, int length)
Sent when new raw data is coming from the log service.- Parameters:
data
- the raw data buffer.offset
- the offset into the buffer signaling the beginning of the new data.length
- the length of the new data.
-
-