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 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 inherited from class org.apache.sshd.common.file.root.RootedDirectoryStream
delegate, rfs
-
-
Constructor Summary
Constructors Constructor Description RootedSecureDirectoryStream(RootedFileSystem rfs, SecureDirectoryStream<Path> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteDirectory(Path path)voiddeleteFile(Path path)protected PathfixPath(Path p)<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)SeekableByteChannelnewByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)SecureDirectoryStream<Path>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 Detail
-
RootedSecureDirectoryStream
public RootedSecureDirectoryStream(RootedFileSystem rfs, SecureDirectoryStream<Path> delegate)
-
-
Method Detail
-
newDirectoryStream
public SecureDirectoryStream<Path> newDirectoryStream(Path path, LinkOption... options) throws IOException
- Specified by:
newDirectoryStreamin interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
- Specified by:
newByteChannelin interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
deleteFile
public void deleteFile(Path path) throws IOException
- Specified by:
deleteFilein interfaceSecureDirectoryStream<Path>- Throws:
IOException
-
deleteDirectory
public void deleteDirectory(Path path) throws IOException
- 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
public <V extends FileAttributeView> V getFileAttributeView(Class<V> type)
- Specified by:
getFileAttributeViewin interfaceSecureDirectoryStream<Path>
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options)
- Specified by:
getFileAttributeViewin interfaceSecureDirectoryStream<Path>
-
-