Package com.azure.storage.blob.nio
Class AzureDirectoryStream
- java.lang.Object
-
- com.azure.storage.blob.nio.AzureDirectoryStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Path>
,DirectoryStream<Path>
public final class AzureDirectoryStream extends Object implements DirectoryStream<Path>
A type for iterating over the contents of a directory. This type is asynchronously closeable, i.e. closing the stream from any thread will cause the stream to stop returning elements at that point.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.nio.file.DirectoryStream
DirectoryStream.Filter<T extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Iterator<Path>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-