Package com.android.ddmlib.logcat
Class LogCatMessageParser
- java.lang.Object
-
- com.android.ddmlib.logcat.LogCatMessageParser
-
public final class LogCatMessageParser extends java.lang.Object
Class to parse raw output ofadb logcat -v long
toLogCatMessage
objects.
-
-
Constructor Summary
Constructors Constructor Description LogCatMessageParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<LogCatMessage>
processLogLines(java.lang.String[] lines, IDevice device)
Parse a list of strings intoLogCatMessage
objects.
-
-
-
Method Detail
-
processLogLines
@NonNull public java.util.List<LogCatMessage> processLogLines(java.lang.String[] lines, IDevice device)
Parse a list of strings intoLogCatMessage
objects. This method maintains state from previous calls regarding the last seen header of logcat messages.- Parameters:
lines
- list of raw strings obtained from logcat -v longdevice
- device from which these log messages have been received- Returns:
- list of LogMessage objects parsed from the input
-
-