public final class GenericFileSystem extends FileSystem
FileSystem
implementation
The design of this package makes it so that this class is final. All its methods are delegated to the matching component.
Limitations:
root directory
, only
one file store
.Constructor and Description |
---|
GenericFileSystem(URI uri,
FileSystemRepository repository,
FileSystemDriver driver,
FileSystemProvider provider)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
FileSystemDriver |
getDriver() |
Iterable<FileStore> |
getFileStores() |
Path |
getPath(String first,
String... more) |
PathMatcher |
getPathMatcher(String syntaxAndPattern) |
Iterable<Path> |
getRootDirectories() |
String |
getSeparator() |
URI |
getUri() |
UserPrincipalLookupService |
getUserPrincipalLookupService() |
boolean |
isOpen() |
boolean |
isReadOnly() |
WatchService |
newWatchService() |
FileSystemProvider |
provider() |
Set<String> |
supportedFileAttributeViews() |
public GenericFileSystem(URI uri, FileSystemRepository repository, FileSystemDriver driver, FileSystemProvider provider)
uri
- the filesystem URIrepository
- the filesystem repositorydriver
- the filesystem driverprovider
- the filesystem provider@Nonnull public FileSystemDriver getDriver()
public FileSystemProvider provider()
provider
in class FileSystem
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FileSystem
IOException
public boolean isOpen()
isOpen
in class FileSystem
public boolean isReadOnly()
isReadOnly
in class FileSystem
public String getSeparator()
getSeparator
in class FileSystem
public Iterable<Path> getRootDirectories()
getRootDirectories
in class FileSystem
public Iterable<FileStore> getFileStores()
getFileStores
in class FileSystem
public Set<String> supportedFileAttributeViews()
supportedFileAttributeViews
in class FileSystem
public Path getPath(String first, String... more)
getPath
in class FileSystem
public PathMatcher getPathMatcher(String syntaxAndPattern)
getPathMatcher
in class FileSystem
public UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService
in class FileSystem
public WatchService newWatchService() throws IOException
newWatchService
in class FileSystem
IOException