Class ShrinkWrapDirectoryStream
java.lang.Object
org.jboss.shrinkwrap.impl.nio.file.ShrinkWrapDirectoryStream
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<Path>, DirectoryStream<Path>
ShrinkWrap implementation of a
DirectoryStream-
Nested Class Summary
Nested classes/interfaces inherited from interface DirectoryStream
DirectoryStream.Filter<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final DirectoryStream.Filter<? super Path> private final ShrinkWrapFileSystemprivate booleanprivate final Path -
Constructor Summary
ConstructorsConstructorDescriptionShrinkWrapDirectoryStream(Path startingPath, ShrinkWrapFileSystem fs, DirectoryStream.Filter<? super Path> filter) Creates a new instance starting from startingPath with is required backing the specifiedShrinkWrapFileSystem, which is required. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
fs
-
filter
-
startingPath
-
closed
private boolean closed -
iteratorReturned
private boolean iteratorReturned
-
-
Constructor Details
-
ShrinkWrapDirectoryStream
ShrinkWrapDirectoryStream(Path startingPath, ShrinkWrapFileSystem fs, DirectoryStream.Filter<? super Path> filter) throws IllegalArgumentException Creates a new instance starting from startingPath with is required backing the specifiedShrinkWrapFileSystem, which is required. An optionalDirectoryStream.Filtermay be specified as well.- Parameters:
startingPath-fs-filter-- Throws:
IllegalArgumentException- If the fs is not specified
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- See Also:
-
iterator
-