Package no.maddin.niofs.sftp
Class SFTPHost
java.lang.Object
java.nio.file.FileSystem
no.maddin.niofs.sftp.SFTPHost
- All Implemented Interfaces:
Closeable,AutoCloseable
Represents a host for the SFTP file system provider.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SFTP_TEST_HOST
-
-
Constructor Details
-
SFTPHost
SFTPHost(SFTPFileSystemProvider provider, URI serverUri)
-
-
Method Details
-
getServerUri
- Throws:
URISyntaxException
-
provider
- Specified by:
providerin classFileSystem
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpenin classFileSystem
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classFileSystem
-
getSeparator
- Specified by:
getSeparatorin classFileSystem
-
getRootDirectories
- Specified by:
getRootDirectoriesin classFileSystem
-
getFileStores
- Specified by:
getFileStoresin classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
getPath
- Specified by:
getPathin classFileSystem
-
getPathMatcher
- Specified by:
getPathMatcherin classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupServicein classFileSystem
-
newWatchService
- Specified by:
newWatchServicein classFileSystem- Throws:
IOException
-
getUsername
-
getPassword
-
getHost
-
getPort
public int getPort() -
getServerUri
-
toString
-