Package org.apache.sshd.common.file.root
Class RootedSecureDirectoryStream
java.lang.Object
org.apache.sshd.common.file.root.RootedDirectoryStream
org.apache.sshd.common.file.root.RootedSecureDirectoryStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Path>
,DirectoryStream<Path>
,SecureDirectoryStream<Path>
public class RootedSecureDirectoryStream
extends RootedDirectoryStream
implements SecureDirectoryStream<Path>
A secure directory stream proxy for a
RootedFileSystem
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.nio.file.DirectoryStream
DirectoryStream.Filter<T>
-
Field Summary
Fields inherited from class org.apache.sshd.common.file.root.RootedDirectoryStream
delegate, rfs
-
Constructor Summary
ConstructorsConstructorDescriptionRootedSecureDirectoryStream
(RootedFileSystem rfs, SecureDirectoryStream<Path> delegate) -
Method Summary
Modifier and TypeMethodDescriptionprivate SecureDirectoryStream
<Path> delegate()
void
deleteDirectory
(Path path) void
deleteFile
(Path path) protected Path
<V extends FileAttributeView>
VgetFileAttributeView
(Class<V> type) <V extends FileAttributeView>
VgetFileAttributeView
(Path path, Class<V> type, LinkOption... options) void
move
(Path srcpath, SecureDirectoryStream<Path> targetdir, Path targetpath) newByteChannel
(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) newDirectoryStream
(Path path, LinkOption... options) Methods inherited from class org.apache.sshd.common.file.root.RootedDirectoryStream
close, iterator, root
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.nio.file.DirectoryStream
iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RootedSecureDirectoryStream
-
-
Method Details
-
newDirectoryStream
public SecureDirectoryStream<Path> newDirectoryStream(Path path, LinkOption... options) throws IOException - Specified by:
newDirectoryStream
in interfaceSecureDirectoryStream<Path>
- Throws:
IOException
-
fixPath
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannel
in interfaceSecureDirectoryStream<Path>
- Throws:
IOException
-
deleteFile
- Specified by:
deleteFile
in interfaceSecureDirectoryStream<Path>
- Throws:
IOException
-
deleteDirectory
- Specified by:
deleteDirectory
in interfaceSecureDirectoryStream<Path>
- Throws:
IOException
-
move
public void move(Path srcpath, SecureDirectoryStream<Path> targetdir, Path targetpath) throws IOException - Specified by:
move
in interfaceSecureDirectoryStream<Path>
- Throws:
IOException
-
getFileAttributeView
- Specified by:
getFileAttributeView
in interfaceSecureDirectoryStream<Path>
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) - Specified by:
getFileAttributeView
in interfaceSecureDirectoryStream<Path>
-
delegate
-