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.FileSystemrootFsprivate java.nio.file.PathrootPath-
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 voidclose()protected RootedPathcreate(java.lang.String root, java.util.List<java.lang.String> names)java.lang.Iterable<java.nio.file.FileStore>getFileStores()java.nio.file.PathgetRoot()java.nio.file.FileSystemgetRootFileSystem()java.nio.file.attribute.UserPrincipalLookupServicegetUserPrincipalLookupService()booleanisOpen()booleanisReadOnly()RootedFileSystemProviderprovider()java.util.Set<java.lang.String>supportedFileAttributeViews()java.lang.StringtoString()-
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:
providerin classBaseFileSystem<RootedPath>
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.nio.file.FileSystem- Throws:
java.io.IOException
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin classjava.nio.file.FileSystem
-
isReadOnly
public boolean isReadOnly()
- Overrides:
isReadOnlyin classBaseFileSystem<RootedPath>
-
supportedFileAttributeViews
public java.util.Set<java.lang.String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViewsin classjava.nio.file.FileSystem
-
getUserPrincipalLookupService
public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
- Specified by:
getUserPrincipalLookupServicein classjava.nio.file.FileSystem
-
create
protected RootedPath create(java.lang.String root, java.util.List<java.lang.String> names)
- Specified by:
createin classBaseFileSystem<RootedPath>
-
getFileStores
public java.lang.Iterable<java.nio.file.FileStore> getFileStores()
- Overrides:
getFileStoresin classBaseFileSystem<RootedPath>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-