public final class EventLogParser
extends java.lang.Object
Constructor and Description |
---|
EventLogParser() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,EventValueDescription[]> |
getEventInfoMap() |
java.util.Map<java.lang.Integer,java.lang.String> |
getTagMap() |
boolean |
init(IDevice device)
Inits the parser for a specific Device.
|
boolean |
init(java.lang.String filePath)
Inits the parser with a specified event-log-tags file.
|
boolean |
init(java.lang.String[] tagFileContent)
Inits the parser with the content of a tag file.
|
EventContainer |
parse(LogReceiver.LogEntry entry) |
EventContainer |
parse(java.lang.String textLogLine) |
void |
saveTags(java.lang.String filePath)
Recreates the event-log-tags at the specified file path.
|
public boolean init(IDevice device)
This methods reads the event-log-tags located on the device to find out what tags are being written to the event log and what their format is.
device
- The device.true
if success, false
if failure or cancellation.public boolean init(java.lang.String[] tagFileContent)
tagFileContent
- the lines of a tag file.true
if success, false
if failure.public boolean init(java.lang.String filePath)
filePath
- true
if success, false
if failure.public EventContainer parse(LogReceiver.LogEntry entry)
public EventContainer parse(java.lang.String textLogLine)
public java.util.Map<java.lang.Integer,java.lang.String> getTagMap()
public java.util.Map<java.lang.Integer,EventValueDescription[]> getEventInfoMap()
public void saveTags(java.lang.String filePath) throws java.io.IOException
filePath
- the file path to write the file.java.io.IOException