com.android.ddmlib.logcat
Class LogCatMessageParser

java.lang.Object
  extended by com.android.ddmlib.logcat.LogCatMessageParser

public final class LogCatMessageParser
extends java.lang.Object

Class to parse raw output of adb logcat -v long to LogCatMessage objects.


Constructor Summary
LogCatMessageParser()
           
 
Method Summary
 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

LogCatMessageParser

public LogCatMessageParser()
Method Detail

processLogLines

@NonNull
public java.util.List<LogCatMessage> processLogLines(java.lang.String[] lines,
                                                             IDevice device)
Parse a list of strings into LogCatMessage 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 long
device - device from which these log messages have been received
Returns:
list of LogMessage objects parsed from the input