T
- public interface DirectoryStream<T> extends Closeable, 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.
|
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException