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 DirectoryStream
DirectoryStream.Filter<T> -
Field Summary
Fields inherited from class RootedDirectoryStream
delegate, rfs -
Constructor Summary
ConstructorsConstructorDescriptionRootedSecureDirectoryStream(RootedFileSystem rfs, SecureDirectoryStream<Path> delegate) -
Method Summary
Modifier and TypeMethodDescriptionprivate SecureDirectoryStream<Path> delegate()voiddeleteDirectory(Path path) voiddeleteFile(Path path) protected Path<V extends FileAttributeView>
VgetFileAttributeView(Class<V> type) <V extends FileAttributeView>
VgetFileAttributeView(Path path, Class<V> type, LinkOption... options) voidmove(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 RootedDirectoryStream
close, iterator, rootMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DirectoryStream
iteratorMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
RootedSecureDirectoryStream
-
-
Method Details
-
newDirectoryStream
public SecureDirectoryStream<Path> newDirectoryStream(Path path, LinkOption... options) throws IOException - Specified by:
newDirectoryStreamin interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
fixPath
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannelin interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
deleteFile
- Specified by:
deleteFilein interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
deleteDirectory
- Specified by:
deleteDirectoryin interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
move
public void move(Path srcpath, SecureDirectoryStream<Path> targetdir, Path targetpath) throws IOException - Specified by:
movein interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
getFileAttributeView
- Specified by:
getFileAttributeViewin interfaceSecureDirectoryStream<Path>
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) - Specified by:
getFileAttributeViewin interfaceSecureDirectoryStream<Path>
-
delegate
-