class ShrinkWrapDirectoryStream
extends java.lang.Object
implements java.nio.file.DirectoryStream<java.nio.file.Path>
DirectoryStream| Modifier and Type | Field and Description |
|---|---|
private boolean |
closed |
private java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> |
filter |
private ShrinkWrapFileSystem |
fs |
private boolean |
iteratorReturned |
private java.nio.file.Path |
startingPath |
| Constructor and Description |
|---|
ShrinkWrapDirectoryStream(java.nio.file.Path startingPath,
ShrinkWrapFileSystem fs,
java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter)
Creates a new instance starting from startingPath with is required backing the specified
ShrinkWrapFileSystem, which is required. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Iterator<java.nio.file.Path> |
iterator() |
private final ShrinkWrapFileSystem fs
private final java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter
private final java.nio.file.Path startingPath
private boolean closed
private boolean iteratorReturned
ShrinkWrapDirectoryStream(java.nio.file.Path startingPath,
ShrinkWrapFileSystem fs,
java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter)
throws java.lang.IllegalArgumentException
ShrinkWrapFileSystem, which is required. An optional DirectoryStream.Filter may be
specified as well.startingPath - fs - filter - java.lang.IllegalArgumentException - If the fs is not specifiedpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCloseable.close()public java.util.Iterator<java.nio.file.Path> iterator()
iterator in interface java.lang.Iterable<java.nio.file.Path>iterator in interface java.nio.file.DirectoryStream<java.nio.file.Path>DirectoryStream.iterator()