public final class LogReceiver
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LogReceiver.ILogListener
Classes which implement this interface provide a method that deals
with
LogReceiver.LogEntry objects coming from log service through a LogReceiver. |
static class |
LogReceiver.LogEntry
Represents a log entry and its raw data.
|
| Constructor and Description |
|---|
LogReceiver(LogReceiver.ILogListener listener)
Creates a
LogReceiver with an LogReceiver.ILogListener. |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the current remote service.
|
boolean |
isCancelled()
Returns whether this receiver is canceling the remote service.
|
void |
parseNewData(byte[] data,
int offset,
int length)
Parses new data coming from the log service.
|
public LogReceiver(LogReceiver.ILogListener listener)
LogReceiver with an LogReceiver.ILogListener.
The LogReceiver.ILogListener will receive new log entries as they are parsed, in the form
of LogReceiver.LogEntry objects.
listener - the listener to receive new log entries.public void parseNewData(byte[] data,
int offset,
int length)
data - the data bufferoffset - the offset into the buffer signaling the beginning of the new data.length - the length of the new data.public boolean isCancelled()
public void cancel()