Lines Matching refs:DirectoryStream
367 implements DirectoryStream.Filter<Path>
378 * Opens a directory, returning a {@link DirectoryStream} to iterate over
380 * stream's {@link DirectoryStream#iterator iterator} are of type {@code
396 * @return a new and open {@code DirectoryStream} object
408 public static DirectoryStream<Path> newDirectoryStream(Path dir)
415 * Opens a directory, returning a {@link DirectoryStream} to iterate over
417 * stream's {@link DirectoryStream#iterator iterator} are of type {@code
428 * try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, "*.java")) {
449 * @return a new and open {@code DirectoryStream} object
463 public static DirectoryStream<Path> newDirectoryStream(Path dir, String glob)
473 DirectoryStream.Filter<Path> filter = new DirectoryStream.Filter<Path>() {
483 * Opens a directory, returning a {@link DirectoryStream} to iterate over
485 * stream's {@link DirectoryStream#iterator iterator} are of type {@code
489 * the iterator are filtered by the given {@link DirectoryStream.Filter
511 * DirectoryStream.Filter<Path> filter = new DirectoryStream.Filter<Path>() {
517 * try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, filter)) {
527 * @return a new and open {@code DirectoryStream} object
539 public static DirectoryStream<Path> newDirectoryStream(Path dir,
540 DirectoryStream.Filter<? super Path> filter)