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 void |
doCloseCommunicationLink()
Close the underlaying 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 doCloseCommunicationLink()
AbstractFileSystem
doCloseCommunicationLink
in class AbstractFileSystem
protected void addCapabilities(Collection<Capability> caps)
addCapabilities
in class AbstractFileSystem
public FtpClient getClient() throws FileSystemException
FileSystemException
- if an error occurs.public void putClient(FtpClient client)
client
- The FTPClient.protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile
in class AbstractFileSystem
FileSystemException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.