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 FileSystempublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FileSystemIOExceptionpublic boolean isOpen()
isOpen in class FileSystempublic boolean isReadOnly()
isReadOnly in class FileSystempublic String getSeparator()
getSeparator in class FileSystempublic Iterable<Path> getRootDirectories()
getRootDirectories in class FileSystempublic Iterable<FileStore> getFileStores()
getFileStores in class FileSystempublic Set<String> supportedFileAttributeViews()
supportedFileAttributeViews in class FileSystempublic Path getPath(String first, String... more)
getPath in class FileSystempublic PathMatcher getPathMatcher(String syntaxAndPattern)
getPathMatcher in class FileSystempublic UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class FileSystempublic WatchService newWatchService() throws IOException
newWatchService in class FileSystemIOException