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:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Iterable<java.nio.file.Path>,java.nio.file.DirectoryStream<java.nio.file.Path>,java.nio.file.SecureDirectoryStream<java.nio.file.Path>
public class RootedSecureDirectoryStream extends RootedDirectoryStream implements java.nio.file.SecureDirectoryStream<java.nio.file.Path>
A secure directory stream proxy for aRootedFileSystem
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.file.root.RootedDirectoryStream
delegate, rfs
-
-
Constructor Summary
Constructors Constructor Description RootedSecureDirectoryStream(RootedFileSystem rfs, java.nio.file.SecureDirectoryStream<java.nio.file.Path> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.nio.file.SecureDirectoryStream<java.nio.file.Path>delegate()voiddeleteDirectory(java.nio.file.Path path)voiddeleteFile(java.nio.file.Path path)protected java.nio.file.PathfixPath(java.nio.file.Path p)<V extends java.nio.file.attribute.FileAttributeView>
VgetFileAttributeView(java.lang.Class<V> type)<V extends java.nio.file.attribute.FileAttributeView>
VgetFileAttributeView(java.nio.file.Path path, java.lang.Class<V> type, java.nio.file.LinkOption... options)voidmove(java.nio.file.Path srcpath, java.nio.file.SecureDirectoryStream<java.nio.file.Path> targetdir, java.nio.file.Path targetpath)java.nio.channels.SeekableByteChannelnewByteChannel(java.nio.file.Path path, java.util.Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs)java.nio.file.SecureDirectoryStream<java.nio.file.Path>newDirectoryStream(java.nio.file.Path path, java.nio.file.LinkOption... options)-
Methods inherited from class org.apache.sshd.common.file.root.RootedDirectoryStream
close, iterator, root
-
-
-
-
Constructor Detail
-
RootedSecureDirectoryStream
public RootedSecureDirectoryStream(RootedFileSystem rfs, java.nio.file.SecureDirectoryStream<java.nio.file.Path> delegate)
-
-
Method Detail
-
newDirectoryStream
public java.nio.file.SecureDirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path path, java.nio.file.LinkOption... options) throws java.io.IOException- Specified by:
newDirectoryStreamin interfacejava.nio.file.SecureDirectoryStream<java.nio.file.Path>- Throws:
java.io.IOException
-
fixPath
protected java.nio.file.Path fixPath(java.nio.file.Path p)
-
newByteChannel
public java.nio.channels.SeekableByteChannel newByteChannel(java.nio.file.Path path, java.util.Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs) throws java.io.IOException- Specified by:
newByteChannelin interfacejava.nio.file.SecureDirectoryStream<java.nio.file.Path>- Throws:
java.io.IOException
-
deleteFile
public void deleteFile(java.nio.file.Path path) throws java.io.IOException- Specified by:
deleteFilein interfacejava.nio.file.SecureDirectoryStream<java.nio.file.Path>- Throws:
java.io.IOException
-
deleteDirectory
public void deleteDirectory(java.nio.file.Path path) throws java.io.IOException- Specified by:
deleteDirectoryin interfacejava.nio.file.SecureDirectoryStream<java.nio.file.Path>- Throws:
java.io.IOException
-
move
public void move(java.nio.file.Path srcpath, java.nio.file.SecureDirectoryStream<java.nio.file.Path> targetdir, java.nio.file.Path targetpath) throws java.io.IOException- Specified by:
movein interfacejava.nio.file.SecureDirectoryStream<java.nio.file.Path>- Throws:
java.io.IOException
-
getFileAttributeView
public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(java.lang.Class<V> type)
- Specified by:
getFileAttributeViewin interfacejava.nio.file.SecureDirectoryStream<java.nio.file.Path>
-
getFileAttributeView
public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(java.nio.file.Path path, java.lang.Class<V> type, java.nio.file.LinkOption... options)- Specified by:
getFileAttributeViewin interfacejava.nio.file.SecureDirectoryStream<java.nio.file.Path>
-
delegate
private java.nio.file.SecureDirectoryStream<java.nio.file.Path> delegate()
-
-