Package org.apache.sshd.common.file.root
Class RootedFileSystem
- java.lang.Object
-
- java.nio.file.FileSystem
-
- org.apache.sshd.common.file.util.BaseFileSystem<RootedPath>
-
- org.apache.sshd.common.file.root.RootedFileSystem
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class RootedFileSystem extends BaseFileSystem<RootedPath>
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.file.util.BaseFileSystem
log
-
-
Constructor Summary
Constructors Constructor Description RootedFileSystem(RootedFileSystemProvider fileSystemProvider, Path root, Map<String,?> env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected RootedPath
create(String root, List<String> names)
Iterable<FileStore>
getFileStores()
Path
getRoot()
FileSystem
getRootFileSystem()
UserPrincipalLookupService
getUserPrincipalLookupService()
boolean
isOpen()
boolean
isReadOnly()
RootedFileSystemProvider
provider()
Set<String>
supportedFileAttributeViews()
String
toString()
-
Methods inherited from class org.apache.sshd.common.file.util.BaseFileSystem
appendDedupSep, create, create, getDefaultDir, getPath, getPathMatcher, getRootDirectories, getSeparator, globToRegex, newWatchService
-
-
-
-
Constructor Detail
-
RootedFileSystem
public RootedFileSystem(RootedFileSystemProvider fileSystemProvider, Path root, Map<String,?> env)
-
-
Method Detail
-
getRootFileSystem
public FileSystem getRootFileSystem()
-
getRoot
public Path getRoot()
-
provider
public RootedFileSystemProvider provider()
- Overrides:
provider
in classBaseFileSystem<RootedPath>
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classFileSystem
- Throws:
IOException
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in classFileSystem
-
isReadOnly
public boolean isReadOnly()
- Overrides:
isReadOnly
in classBaseFileSystem<RootedPath>
-
supportedFileAttributeViews
public Set<String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViews
in classFileSystem
-
getUserPrincipalLookupService
public UserPrincipalLookupService getUserPrincipalLookupService()
- Specified by:
getUserPrincipalLookupService
in classFileSystem
-
create
protected RootedPath create(String root, List<String> names)
- Specified by:
create
in classBaseFileSystem<RootedPath>
-
getFileStores
public Iterable<FileStore> getFileStores()
- Overrides:
getFileStores
in classBaseFileSystem<RootedPath>
-
-