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:
provider
in classFileSystem
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classFileSystem
- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in classFileSystem
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in classFileSystem
-
getSeparator
- Specified by:
getSeparator
in classFileSystem
-
getRootDirectories
- Specified by:
getRootDirectories
in classFileSystem
-
getFileStores
- Specified by:
getFileStores
in classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViews
in classFileSystem
-
getPath
- Specified by:
getPath
in classFileSystem
-
getPathMatcher
- Specified by:
getPathMatcher
in classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupService
in classFileSystem
-
newWatchService
- Specified by:
newWatchService
in classFileSystem
- Throws:
IOException
-
getUsername
-
getPassword
-
getHost
-
getPort
public int getPort() -
getServerUri
-
toString
-