FileSystem, VfsComponentFtpsFileSystempublic class FtpFileSystem extends AbstractFileSystem
| Constructor | Description |
|---|---|
FtpFileSystem(GenericFileName rootName,
FtpClient ftpClient,
FileSystemOptions fileSystemOptions) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addCapabilities(java.util.Collection<Capability> caps) |
Adds the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name) |
Creates a file object.
|
protected FTPClientWrapper |
createWrapper() |
Get the wrapper to access this file system.
|
protected void |
doCloseCommunicationLink() |
Close the underlying link used to access the files
|
FtpClient |
getClient() |
Creates an FTP client to use.
|
void |
putClient(FtpClient client) |
Returns an FTP client after use.
|
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributegetContext, getLogger, setContext, setLoggerpublic FtpFileSystem(GenericFileName rootName, FtpClient ftpClient, FileSystemOptions fileSystemOptions)
rootName - The root of the file system.ftpClient - The FtpClient.fileSystemOptions - The FileSystemOptions.protected void doCloseCommunicationLink()
AbstractFileSystemdoCloseCommunicationLink in class AbstractFileSystemprotected void addCapabilities(java.util.Collection<Capability> caps)
addCapabilities in class AbstractFileSystemcaps - collections of Capabilities, can be immutable.public FtpClient getClient() throws FileSystemException
FileSystemException - if an error occurs.protected FTPClientWrapper createWrapper() throws FileSystemException
FileSystemException - if any error occurs.public void putClient(FtpClient client)
client - The FTPClient.protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile in class AbstractFileSystemname - name referencing the new file.FileSystemException