Package org.apache.lucene.tests.mockfile
Class FilterDirectoryStream
java.lang.Object
org.apache.lucene.tests.mockfile.FilterDirectoryStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Path>,DirectoryStream<Path>
A
FilterDirectoryStream contains another DirectoryStream, which it uses as its
basic source of data, possibly transforming the data along the way or providing additional
functionality.-
Nested Class Summary
Nested classes/interfaces inherited from interface java.nio.file.DirectoryStream
DirectoryStream.Filter<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DirectoryStream<Path> The underlyingDirectoryStreaminstance.protected final FilterFileSystemThe underlyingFileSysteminstance. -
Constructor Summary
ConstructorsConstructorDescriptionFilterDirectoryStream(DirectoryStream<Path> delegate, FilterFileSystem fileSystem) Construct aFilterDirectoryStreambased on the specified base stream. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
delegate
The underlyingDirectoryStreaminstance. -
fileSystem
The underlyingFileSysteminstance.
-
-
Constructor Details
-
FilterDirectoryStream
Construct aFilterDirectoryStreambased on the specified base stream.Note that base stream is closed if this stream is closed.
- Parameters:
delegate- specified base stream.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
iterator
-