public interface DirectoryStream<T>
extends java.io.Closeable, java.lang.Iterable<T>
Iterable
set of elements that represent the entries found in a directory.
The elements typically consist of Path
objects when returned by one of the Files.newDirectoryStream
calls
or PathAttributesPair
objects when returned by one of the Files.newAttributesDirectoryStream
calls.Modifier and Type | Interface and Description |
---|---|
static interface |
DirectoryStream.Filter
A filter use to decides if the given directory entry should be accepted.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.Iterator<T> |
iterator() |