public class FilterDirectoryStream<T> extends Object implements DirectoryStream<T>
FilterDirectoryStream contains another
DirectoryStream, which it uses as its basic
source of data, possibly transforming the data along the
way or providing additional functionality.DirectoryStream.Filter<T>| Modifier and Type | Field and Description |
|---|---|
protected DirectoryStream<T> |
delegate
The underlying
DirectoryStream instance. |
| Constructor and Description |
|---|
FilterDirectoryStream(DirectoryStream<T> delegate)
Construct a
FilterDirectoryStream based on
the specified base stream. |
protected final DirectoryStream<T> delegate
DirectoryStream instance.public FilterDirectoryStream(DirectoryStream<T> delegate)
FilterDirectoryStream based on
the specified base stream.
Note that base stream is closed if this stream is closed.
delegate - specified base stream.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.