Package org.apache.sshd.common.file.root
Class RootedDirectoryStream
- java.lang.Object
-
- org.apache.sshd.common.file.root.RootedDirectoryStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Iterable<java.nio.file.Path>
,java.nio.file.DirectoryStream<java.nio.file.Path>
- Direct Known Subclasses:
RootedSecureDirectoryStream
public class RootedDirectoryStream extends java.lang.Object implements java.nio.file.DirectoryStream<java.nio.file.Path>
secure directory stream proxy for aRootedFileSystem
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.file.DirectoryStream<java.nio.file.Path>
delegate
protected RootedFileSystem
rfs
-
Constructor Summary
Constructors Constructor Description RootedDirectoryStream(RootedFileSystem rfs, java.nio.file.DirectoryStream<java.nio.file.Path> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.Iterator<java.nio.file.Path>
iterator()
protected java.util.Iterator<java.nio.file.Path>
root(RootedFileSystem rfs, java.util.Iterator<java.nio.file.Path> iter)
-
-
-
Field Detail
-
rfs
protected final RootedFileSystem rfs
-
delegate
protected final java.nio.file.DirectoryStream<java.nio.file.Path> delegate
-
-
Constructor Detail
-
RootedDirectoryStream
public RootedDirectoryStream(RootedFileSystem rfs, java.nio.file.DirectoryStream<java.nio.file.Path> delegate)
-
-
Method Detail
-
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>
-
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
-
root
protected java.util.Iterator<java.nio.file.Path> root(RootedFileSystem rfs, java.util.Iterator<java.nio.file.Path> iter)
-
-