diff options
author | Jed Estep <jestep@google.com> | 2016-01-04 18:27:02 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-01-04 18:27:02 +0000 |
commit | 902c545fe48ec077ca17fde629e9b5e655e83d15 (patch) | |
tree | fa57fb92727a26a6a809412fcd6118b17931de24 /src | |
parent | 411c68a0baab86c090293e772053ce17edadf8aa (diff) | |
parent | 641d2e02a9a1f8e5091985289cc485da723bc5eb (diff) | |
download | loganalysis-902c545fe48ec077ca17fde629e9b5e655e83d15.tar.gz |
Merge "Add a clear() method for LogcatParser"
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/loganalysis/parser/LogcatParser.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/loganalysis/parser/LogcatParser.java b/src/com/android/loganalysis/parser/LogcatParser.java index f64936c..ae3cf62 100644 --- a/src/com/android/loganalysis/parser/LogcatParser.java +++ b/src/com/android/loganalysis/parser/LogcatParser.java @@ -194,6 +194,15 @@ public class LogcatParser implements IParser { } /** + * Clear the existing {@link LogcatItem}. The next parse will create a new one. + */ + public void clear() { + mLogcat = null; + mDataList.clear(); + mDataMap.clear(); + } + + /** * Parse a line of input. * * @param line The line to parse |