Class FtpFileSystem
java.lang.Object
org.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractFileSystem
org.apache.commons.vfs.provider.ftp.FtpFileSystem
- All Implemented Interfaces:
FileSystem
,VfsComponent
An FTP file system.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FtpFileSystem
(GenericFileName rootName, FtpClient ftpClient, FileSystemOptions fileSystemOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCapabilities
(Collection caps) Adds the capabilities of this file system.protected FileObject
createFile
(FileName name) Creates a file object.protected void
Close the underlaying link used to access the filesCreates an FTP client to use.void
Returns an FTP client after use.Methods inherited from class org.apache.commons.vfs.provider.AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Constructor Details
-
FtpFileSystem
protected FtpFileSystem(GenericFileName rootName, FtpClient ftpClient, FileSystemOptions fileSystemOptions)
-
-
Method Details
-
doCloseCommunicationLink
protected void doCloseCommunicationLink()Description copied from class:AbstractFileSystem
Close the underlaying link used to access the files- Overrides:
doCloseCommunicationLink
in classAbstractFileSystem
-
addCapabilities
Adds the capabilities of this file system.- Specified by:
addCapabilities
in classAbstractFileSystem
-
getClient
Creates an FTP client to use.- Throws:
FileSystemException
-
putClient
Returns an FTP client after use. -
createFile
Creates a file object.- Specified by:
createFile
in classAbstractFileSystem
- Throws:
FileSystemException
-