Java Get All Entries in Directory using Files.newDirectoryStream() This Java tutorial to show you how open a directory and get all files and directories inside it using the Files.newDirectoryStream() method.