src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java
changeset 59226 a0f39cc47387
parent 58863 c16ac7a2eba4
equal deleted inserted replaced
59225:80e1201f6c9a 59226:a0f39cc47387
   137      *         does not have
   137      *         does not have
   138      *         {@code FlightRecorderPermission("accessFlightRecorder")}
   138      *         {@code FlightRecorderPermission("accessFlightRecorder")}
   139      */
   139      */
   140     public static EventStream openRepository() throws IOException {
   140     public static EventStream openRepository() throws IOException {
   141         Utils.checkAccessFlightRecorder();
   141         Utils.checkAccessFlightRecorder();
   142         return new EventDirectoryStream(AccessController.getContext(), null, SecuritySupport.PRIVILIGED, false);
   142         return new EventDirectoryStream(AccessController.getContext(), null, SecuritySupport.PRIVILIGED, null);
   143     }
   143     }
   144 
   144 
   145     /**
   145     /**
   146      * Creates an event stream from a disk repository.
   146      * Creates an event stream from a disk repository.
   147      * <p>
   147      * <p>
   160      *         files in the directory.
   160      *         files in the directory.
   161      */
   161      */
   162     public static EventStream openRepository(Path directory) throws IOException {
   162     public static EventStream openRepository(Path directory) throws IOException {
   163         Objects.nonNull(directory);
   163         Objects.nonNull(directory);
   164         AccessControlContext acc = AccessController.getContext();
   164         AccessControlContext acc = AccessController.getContext();
   165         return new EventDirectoryStream(acc, directory, FileAccess.UNPRIVILIGED, false);
   165         return new EventDirectoryStream(acc, directory, FileAccess.UNPRIVILIGED, null);
   166     }
   166     }
   167 
   167 
   168     /**
   168     /**
   169      * Creates an event stream from a file.
   169      * Creates an event stream from a file.
   170      * <p>
   170      * <p>