Package org.apache.sshd.common.file.util
Class BaseFileSystem<T extends Path>
- java.lang.Object
-
- java.nio.file.FileSystem
-
- org.apache.sshd.common.file.util.BaseFileSystem<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
RootedFileSystem
public abstract class BaseFileSystem<T extends Path> extends FileSystem
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description BaseFileSystem(FileSystemProvider fileSystemProvider)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidappendDedupSep(StringBuilder sb, CharSequence s)protected Tcreate(String root, String... names)protected Tcreate(String root, Collection<String> names)protected abstract Tcreate(String root, List<String> names)TgetDefaultDir()Iterable<FileStore>getFileStores()TgetPath(String first, String... more)PathMatchergetPathMatcher(String syntaxAndPattern)Iterable<Path>getRootDirectories()StringgetSeparator()protected StringglobToRegex(String pattern)booleanisReadOnly()WatchServicenewWatchService()FileSystemProviderprovider()-
Methods inherited from class java.nio.file.FileSystem
close, getUserPrincipalLookupService, isOpen, supportedFileAttributeViews
-
-
-
-
Constructor Detail
-
BaseFileSystem
public BaseFileSystem(FileSystemProvider fileSystemProvider)
-
-
Method Detail
-
getDefaultDir
public T getDefaultDir()
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin classFileSystem
-
provider
public FileSystemProvider provider()
- Specified by:
providerin classFileSystem
-
getSeparator
public String getSeparator()
- Specified by:
getSeparatorin classFileSystem
-
getRootDirectories
public Iterable<Path> getRootDirectories()
- Specified by:
getRootDirectoriesin classFileSystem
-
getFileStores
public Iterable<FileStore> getFileStores()
- Specified by:
getFileStoresin classFileSystem
-
getPath
public T getPath(String first, String... more)
- Specified by:
getPathin classFileSystem
-
appendDedupSep
protected void appendDedupSep(StringBuilder sb, CharSequence s)
-
getPathMatcher
public PathMatcher getPathMatcher(String syntaxAndPattern)
- Specified by:
getPathMatcherin classFileSystem
-
newWatchService
public WatchService newWatchService() throws IOException
- Specified by:
newWatchServicein classFileSystem- Throws:
IOException
-
create
protected T create(String root, Collection<String> names)
-
-