Class ShrinkWrapDirectoryStream
- java.lang.Object
-
- org.jboss.shrinkwrap.impl.nio.file.ShrinkWrapDirectoryStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Iterable<java.nio.file.Path>
,java.nio.file.DirectoryStream<java.nio.file.Path>
class ShrinkWrapDirectoryStream extends java.lang.Object implements java.nio.file.DirectoryStream<java.nio.file.Path>
ShrinkWrap implementation of aDirectoryStream
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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 specifiedShrinkWrapFileSystem
, which is required.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.Iterator<java.nio.file.Path>
iterator()
-
-
-
Field Detail
-
fs
private final ShrinkWrapFileSystem fs
-
filter
private final java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter
-
startingPath
private final java.nio.file.Path startingPath
-
closed
private boolean closed
-
iteratorReturned
private boolean iteratorReturned
-
-
Constructor Detail
-
ShrinkWrapDirectoryStream
ShrinkWrapDirectoryStream(java.nio.file.Path startingPath, ShrinkWrapFileSystem fs, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter) throws java.lang.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:
java.lang.IllegalArgumentException
- If the fs is not specified
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
- See Also:
Closeable.close()
-
iterator
public java.util.Iterator<java.nio.file.Path> iterator()
- Specified by:
iterator
in interfacejava.nio.file.DirectoryStream<java.nio.file.Path>
- Specified by:
iterator
in interfacejava.lang.Iterable<java.nio.file.Path>
- See Also:
DirectoryStream.iterator()
-
-