public class FtpFileSystem extends AbstractFileSystem
Constructor and Description |
---|
FtpFileSystem(GenericFileName rootName,
FtpClient ftpClient,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Adds the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
protected FTPClientWrapper |
createWrapper()
Gets the wrapper to access this file system.
|
protected void |
doCloseCommunicationLink()
Closes 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, setAttribute
getContext, getLogger, setContext, setLogger
public FtpFileSystem(GenericFileName rootName, FtpClient ftpClient, FileSystemOptions fileSystemOptions)
rootName
- The root of the file system.ftpClient
- The FtpClient.fileSystemOptions
- The FileSystemOptions.protected void addCapabilities(Collection<Capability> caps)
addCapabilities
in class AbstractFileSystem
caps
- collections of Capabilities, can be immutable.protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile
in class AbstractFileSystem
name
- name referencing the new file.FileSystemException
protected FTPClientWrapper createWrapper() throws FileSystemException
FileSystemException
- if any error occurs.protected void doCloseCommunicationLink()
AbstractFileSystem
doCloseCommunicationLink
in class AbstractFileSystem
public FtpClient getClient() throws FileSystemException
FileSystemException
- if an error occurs.public void putClient(FtpClient client)
client
- The FTPClient.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.