|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.ddmlib.log.EventLogParser
public final class EventLogParser
Parser for the "event" log.
Constructor Summary | |
---|---|
EventLogParser()
|
Method Summary | |
---|---|
Map<Integer,EventValueDescription[]> |
getEventInfoMap()
|
Map<Integer,String> |
getTagMap()
|
boolean |
init(IDevice device)
Inits the parser for a specific Device. |
boolean |
init(String filePath)
Inits the parser with a specified event-log-tags file. |
boolean |
init(String[] tagFileContent)
Inits the parser with the content of a tag file. |
EventContainer |
parse(LogReceiver.LogEntry entry)
|
EventContainer |
parse(String textLogLine)
|
void |
saveTags(String filePath)
Recreates the event-log-tags at the specified file path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventLogParser()
Method Detail |
---|
public boolean init(IDevice device)
device
- The device.
true
if success, false
if failure or cancellation.public boolean init(String[] tagFileContent)
tagFileContent
- the lines of a tag file.
true
if success, false
if failure.public boolean init(String filePath)
filePath
-
true
if success, false
if failure.public EventContainer parse(LogReceiver.LogEntry entry)
public EventContainer parse(String textLogLine)
public Map<Integer,String> getTagMap()
public Map<Integer,EventValueDescription[]> getEventInfoMap()
public void saveTags(String filePath) throws IOException
filePath
- the file path to write the file.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |