Package org.apache.sshd.common.file.root
Class RootedDirectoryStream
- java.lang.Object
-
- org.apache.sshd.common.file.root.RootedDirectoryStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Path>,DirectoryStream<Path>
- Direct Known Subclasses:
RootedSecureDirectoryStream
public class RootedDirectoryStream extends Object implements DirectoryStream<Path>
secure directory stream proxy for aRootedFileSystem- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.nio.file.DirectoryStream
DirectoryStream.Filter<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected DirectoryStream<Path>delegateprotected RootedFileSystemrfs
-
Constructor Summary
Constructors Constructor Description RootedDirectoryStream(RootedFileSystem rfs, DirectoryStream<Path> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Iterator<Path>iterator()protected Iterator<Path>root(RootedFileSystem rfs, Iterator<Path> iter)-
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 Detail
-
rfs
protected final RootedFileSystem rfs
-
delegate
protected final DirectoryStream<Path> delegate
-
-
Constructor Detail
-
RootedDirectoryStream
public RootedDirectoryStream(RootedFileSystem rfs, DirectoryStream<Path> delegate)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
root
protected Iterator<Path> root(RootedFileSystem rfs, Iterator<Path> iter)
-
-