public final class SMBFileSystem extends FileSystem
SMBFileSystem, that is,
if you connect to the same server with different credentials, it will results in two distinc SMBFileSystem instances. Furthermore,
different names for the same server will result in different SMBFileSystem instances too.
The SMBFileSystem is the factory for several types of objects, like SMBPath, SMBFileStore etc.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Removes the current instance of
SMBFileSystem from the SMBFileSystemProvider's cache. |
Iterable<FileStore> |
getFileStores()
Returns the
SMBFileStores, i.e. |
Path |
getPath(String first,
String... more)
Constructs a new
SMBPath by concatenating the provided path components. |
PathMatcher |
getPathMatcher(String syntaxAndPattern)
Returns a new
SMBPathMatcher for the provided pattern. |
Iterable<Path> |
getRootDirectories()
Returns the root directories, i.e.
|
String |
getSeparator()
Returns the default path sepeator, which is "/".
|
UserPrincipalLookupService |
getUserPrincipalLookupService()
UserPrincipalLookupService are not supported by the current version of SMBFileSystem. |
boolean |
isOpen()
Returns true, if the current
SMBFileSystem is still known to the SMBFileSystemProvider. |
boolean |
isReadOnly()
Returns false because generally,
SMBFileSystem's are not considered to be read-only. |
WatchService |
newWatchService()
WatchService are not supported by the current version of SMBFileSystem. |
FileSystemProvider |
provider()
Returns instance of
SMBFileSystemProvider this SMBFileSystem belongs to. |
Set<String> |
supportedFileAttributeViews()
Returns a containing the names of the supported
FileAttributeViews |
public FileSystemProvider provider()
SMBFileSystemProvider this SMBFileSystem belongs to.provider in class FileSystemSMBFileSystemProviderpublic void close()
SMBFileSystem from the SMBFileSystemProvider's cache. Calling this method will
not actually close any underlying resource.
However, existing paths pointing to the current instance of SMBFileSystem will not be handled to theclose in interface Closeableclose in interface AutoCloseableclose in class FileSystempublic boolean isOpen()
SMBFileSystem is still known to the SMBFileSystemProvider.isOpen in class FileSystemSMBFileSystem is still open.public boolean isReadOnly()
SMBFileSystem's are not considered to be read-only. However,
the concrete access permissions are specific to a file or resource.isReadOnly in class FileSystempublic String getSeparator()
getSeparator in class FileSystempublic Iterable<Path> getRootDirectories()
SMBFileSystem.getRootDirectories in class FileSystemSMBFileSystem.public Iterable<FileStore> getFileStores()
SMBFileStores, i.e. the list of shares, provided by the current SMBFileSystem.getFileStores in class FileSystemSMBFileStores for the current SMBFileSystem.public Set<String> supportedFileAttributeViews()
FileAttributeViewssupportedFileAttributeViews in class FileSystemFileAttributeViews.public Path getPath(String first, String... more)
SMBPath by concatenating the provided path components. If the first path starts with
a '/' the newly constructed path will be an absolute path. If the last component ends with a '/' the path is treated
as a folder.getPath in class FileSystemfirst - First path component.more - List of additional path components.SMBPath.public PathMatcher getPathMatcher(String syntaxAndPattern)
SMBPathMatcher for the provided pattern.getPathMatcher in class FileSystemsyntaxAndPattern - The syntax or pattern that should be used to match paths against.SMBPathMatcherpublic UserPrincipalLookupService getUserPrincipalLookupService()
UserPrincipalLookupService are not supported by the current version of SMBFileSystem.getUserPrincipalLookupService in class FileSystemUnsupportedOperationException - Alwayspublic WatchService newWatchService() throws IOException
WatchService are not supported by the current version of SMBFileSystem.newWatchService in class FileSystemUnsupportedOperationException - AlwaysIOExceptionCopyright © 2020 pontius software GmbH. All rights reserved.