public final class SMBDirectoryStream extends Object implements DirectoryStream<Path>
DirectoryStream.Filter<T>| Constructor and Description |
|---|
SMBDirectoryStream(SMBPath smbPath,
DirectoryStream.Filter<? super Path> filter)
Public and internal constructor for
SMBDirectoryStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current instance of
SMBDirectoryStream. |
Iterator<Path> |
iterator()
Returns an iterator for content of the directory handled by the current instance of
SMBDirectoryStream. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SMBDirectoryStream(SMBPath smbPath, DirectoryStream.Filter<? super Path> filter) throws IOException
SMBDirectoryStream.smbPath - The SMBPath for which to open a directory stream.filter - An optional filter predicate.NotDirectoryException - If provided SMBPath does not point to a directory.IOException - If something goes wrong while reading the content of the directory.public Iterator<Path> iterator()
SMBDirectoryStream.iterator in interface Iterable<Path>iterator in interface DirectoryStream<Path>SMBDirectoryStreampublic void close()
SMBDirectoryStream.close in interface Closeableclose in interface AutoCloseableCopyright © 2020 pontius software GmbH. All rights reserved.