Class FtpFileSystem
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.ftp.FtpFileSystem
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileSystem,- VfsComponent
- Direct Known Subclasses:
- FtpsFileSystem
An FTP file system.
- 
Constructor SummaryConstructorsConstructorDescriptionFtpFileSystem(GenericFileName rootName, FtpClient ftpClient, FileSystemOptions fileSystemOptions) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection<Capability> caps) Adds the capabilities of this file system.protected FileObjectcreateFile(AbstractFileName name) Creates a file object.protected FTPClientWrapperGets the wrapper to access this file system.protected voidCloses the underlying link used to access the files.Creates an FTP client to use.voidReturns an FTP client after use.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystemaddJunction, 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, setAttributeMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, setContext, setLogger
- 
Constructor Details- 
FtpFileSystempublic FtpFileSystem(GenericFileName rootName, FtpClient ftpClient, FileSystemOptions fileSystemOptions) Constructs a new instance.- Parameters:
- rootName- The root of the file system.
- ftpClient- The FtpClient.
- fileSystemOptions- The FileSystemOptions.
- Since:
- 2.0 (was protected)
 
 
- 
- 
Method Details- 
addCapabilitiesAdds the capabilities of this file system.- Specified by:
- addCapabilitiesin class- AbstractFileSystem
- Parameters:
- caps- collections of Capabilities, can be immutable.
 
- 
createFileCreates a file object.- Specified by:
- createFilein class- AbstractFileSystem
- Parameters:
- name- name referencing the new file.
- Returns:
- new created FileObject.
- Throws:
- FileSystemException
 
- 
createWrapperGets the wrapper to access this file system.- Returns:
- new instance.
- Throws:
- FileSystemException- if any error occurs.
- Since:
- 2.1
 
- 
doCloseCommunicationLinkDescription copied from class:AbstractFileSystemCloses the underlying link used to access the files.- Overrides:
- doCloseCommunicationLinkin class- AbstractFileSystem
 
- 
getClientCreates an FTP client to use.- Returns:
- An FTPClient.
- Throws:
- FileSystemException- if an error occurs.
 
- 
putClientReturns an FTP client after use.- Parameters:
- client- The FTPClient.
 
 
-