equal
deleted
inserted
replaced
101 * |
101 * |
102 * @throws SecurityException if a security manager exists and its |
102 * @throws SecurityException if a security manager exists and its |
103 * {@code checkRead} method denies read access to the file |
103 * {@code checkRead} method denies read access to the file |
104 */ |
104 */ |
105 public static EventStream openFile(Path file) throws IOException { |
105 public static EventStream openFile(Path file) throws IOException { |
106 return new EventFileStream(file, null, null); |
106 return new EventFileStream(AccessController.getContext(), file); |
107 } |
107 } |
108 |
108 |
109 /** |
109 /** |
110 * Performs an action on all events in the stream. |
110 * Performs an action on all events in the stream. |
111 * |
111 * |