src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java
branchJEP-349-branch
changeset 57985 be121cbf3284
parent 57971 aa7b1ea52413
child 58020 f082177c5023
equal deleted inserted replaced
57984:269bbe414580 57985:be121cbf3284
   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      *