From 95ff2401a9c6f0252aeedfa27ba0a9a5f0d7f55e Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 1 Jul 2009 18:03:41 -0700 Subject: Add method to read events from a file. Remove unused method. Fixed after review. --- core/java/android/util/EventLog.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'core/java/android/util') diff --git a/core/java/android/util/EventLog.java b/core/java/android/util/EventLog.java index 7c87248..0f0be79 100644 --- a/core/java/android/util/EventLog.java +++ b/core/java/android/util/EventLog.java @@ -73,7 +73,7 @@ import java.util.List; * * *
  • '\n': 1 byte - an automatically generated newline, used to help detect and recover from log - * corruption and enable stansard unix tools like grep, tail and wc to operate + * corruption and enable standard unix tools like grep, tail and wc to operate * on event logs.
  • * * @@ -289,4 +289,13 @@ public class EventLog { */ public static native void readEvents(int[] tags, Collection output) throws IOException; + + /** + * Read events from a file. + * @param path to read from + * @param output container to add events into + * @throws IOException if something goes wrong reading events + */ + public static native void readEvents(String path, Collection output) + throws IOException; } -- cgit v1.1