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:
java.io.Closeable
,java.lang.AutoCloseable
public class RootedFileSystem extends BaseFileSystem<RootedPath>
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.FileSystem
rootFs
private java.nio.file.Path
rootPath
-
Fields inherited from class org.apache.sshd.common.file.util.BaseFileSystem
log
-
-
Constructor Summary
Constructors Constructor Description RootedFileSystem(RootedFileSystemProvider fileSystemProvider, java.nio.file.Path root, java.util.Map<java.lang.String,?> env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected RootedPath
create(java.lang.String root, java.util.List<java.lang.String> names)
java.lang.Iterable<java.nio.file.FileStore>
getFileStores()
java.nio.file.Path
getRoot()
java.nio.file.FileSystem
getRootFileSystem()
java.nio.file.attribute.UserPrincipalLookupService
getUserPrincipalLookupService()
boolean
isOpen()
boolean
isReadOnly()
RootedFileSystemProvider
provider()
java.util.Set<java.lang.String>
supportedFileAttributeViews()
java.lang.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, java.nio.file.Path root, java.util.Map<java.lang.String,?> env)
-
-
Method Detail
-
getRootFileSystem
public java.nio.file.FileSystem getRootFileSystem()
-
getRoot
public java.nio.file.Path getRoot()
-
provider
public RootedFileSystemProvider provider()
- Overrides:
provider
in classBaseFileSystem<RootedPath>
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.nio.file.FileSystem
- Throws:
java.io.IOException
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in classjava.nio.file.FileSystem
-
isReadOnly
public boolean isReadOnly()
- Overrides:
isReadOnly
in classBaseFileSystem<RootedPath>
-
supportedFileAttributeViews
public java.util.Set<java.lang.String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViews
in classjava.nio.file.FileSystem
-
getUserPrincipalLookupService
public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
- Specified by:
getUserPrincipalLookupService
in classjava.nio.file.FileSystem
-
create
protected RootedPath create(java.lang.String root, java.util.List<java.lang.String> names)
- Specified by:
create
in classBaseFileSystem<RootedPath>
-
getFileStores
public java.lang.Iterable<java.nio.file.FileStore> getFileStores()
- Overrides:
getFileStores
in classBaseFileSystem<RootedPath>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-