|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ddmlib.logcat.LogCatMessageParser
public final class LogCatMessageParser
Class to parse raw output of adb logcat -v long to LogCatMessage objects.
| Constructor Summary | |
|---|---|
LogCatMessageParser()
|
|
| Method Summary | |
|---|---|
LogCatHeader |
processLogHeader(java.lang.String line,
IDevice device)
Parse a header line into a LogCatHeader object, or null if the input line
doesn't match the expected format. |
java.util.List<LogCatMessage> |
processLogLines(java.lang.String[] lines,
IDevice device)
Parse a list of strings into LogCatMessage objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogCatMessageParser()
| Method Detail |
|---|
@Nullable
public LogCatHeader processLogHeader(@NonNull
java.lang.String line,
@Nullable
IDevice device)
LogCatHeader object, or null if the input line
doesn't match the expected format.
line - raw text that should be the header line from logcat -v longdevice - device from which these log messages have been received
LogCatHeader which represents the passed in text
@NonNull
public java.util.List<LogCatMessage> processLogLines(@NonNull
java.lang.String[] lines,
@Nullable
IDevice device)
LogCatMessage objects. This method maintains state from
previous calls regarding the last seen header of logcat messages.
lines - list of raw strings obtained from logcat -v longdevice - device from which these log messages have been received
java.lang.IllegalStateException - if given text before ever parsing a header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||