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 java.nio.file.DirectoryStream
DirectoryStream.Filter<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final DirectoryStream.Filter
<? super Path> private final ShrinkWrapFileSystem
private boolean
private 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.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.Filter
may be specified as well.- Parameters:
startingPath
-fs
-filter
-- Throws:
IllegalArgumentException
- If the fs is not specified
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- See Also:
-
iterator
-