DirectoryStream
Interface DirectoryStream<T>
- Type Parameters:
-
T
- The type of element returned by the iterator
- All Superinterfaces:
- AutoCloseable, Closeable, Iterable<T>
- All Known Subinterfaces:
- SecureDirectoryStream<T>
public interface DirectoryStream<T> extends Closeable, Iterable<T>
An object to iterate over the entries in a directory. A directory stream allows for the convenient use of the for-each construct to iterate over a directory.
While DirectoryStream
extends Iterable
, it is not a general-purpose Iterable
as it supports only a single <