String line;
while ((line = input.readLine()) != null) {
Matcher m = COMMENT_PATTERN.matcher(line);
if (m.matches()) continue;
m = TAG_PATTERN.matcher(line);
if (m.matches()) {
try {
int tag = Integer.parseInt(m.group(1));
Description d = new Description(tag, m.group(2));
mNameMap.put(d.mName, d);
mTagMap.put(d.mTag, d);
} catch (NumberFormatException e) {
Log.e(TAG, "Error in event log tags entry: " + line, e);
}
} else {
Log.e(TAG, "Can't parse event log tags entry: " + line);
}
}