Merge a bunch of cherry-picked changes from the open-source tree.
This commit is contained in:
@@ -73,7 +73,7 @@ import java.util.List;
|
||||
* </ul>
|
||||
* </li>
|
||||
* <li> '\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. </li>
|
||||
* </ul>
|
||||
*
|
||||
@@ -289,4 +289,13 @@ public class EventLog {
|
||||
*/
|
||||
public static native void readEvents(int[] tags, Collection<Event> 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<Event> output)
|
||||
throws IOException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user