|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.SecureFileTransferClient
com.enterprisedt.net.ftp.AsyncFileTransferClient
public class AsyncFileTransferClient
FTP client class supporting multiple protocols that permits asynchronous FTP operations. Together with the connection pool inherited from SecureFileTransferClient, this means that multiple simultaneous file transfers can be performed in the background.
A simple example of connecting asynchronously is shown below. The MyConnectTest class is implementing the callback, passing itself via the 'this' reference into connectAsync():
public class MyConnectTest implements Connect {
private AsyncFileTransferClient client = new AsyncFileTransferClient();
public void startConnecting() {
client.setRemoteHost(host);
client.setUserName(user);
client.setPassword(password);
client.connectAsync(this, null);
}
public void onConnect(ConnectResult result)
throws FTPException, IOException {
result.endAsync();
System.out.println("Connected!")
}
Users should note that calling asyncConnect() starts a pool of worker threads and the
connection pool. This means that asyncDisconnect() (or disconnect()) must be called to stop the
worker threads, otherwise applications will hang on exit as threads will still
be alive.
| Field Summary |
|---|
| Fields inherited from class com.enterprisedt.net.ftp.SecureFileTransferClient |
|---|
activeTransferTasks, advancedFTPSettings, advancedSettings, advancedSSHSettings, advancedSSLSettings, asyncImpl, eventListener, masterContext, multiSettings, statistics |
| Constructor Summary | |
|---|---|
AsyncFileTransferClient()
Default constructor. |
|
AsyncFileTransferClient(int initialPoolSize,
int maxPoolSize)
Constructor. |
|
| Method Summary | |
|---|---|
ChangeDirectoryResult |
changeDirectoryAsync(java.lang.String directoryName,
AsyncCallback.ChangeDirectory callback,
java.lang.Object tag)
Change directory on the FTP server asynchronously. |
ChangeDirectoryResult |
changeToParentDirectoryAsync(AsyncCallback.ChangeDirectory callback,
java.lang.Object tag)
Change directory on the FTP server asynchronously. |
ConnectResult |
connectAsync(AsyncCallback.Connect callback,
java.lang.Object tag)
Make an asynchronous connection to the FTP server. |
CreateDirectoryResult |
createDirectoryAsync(java.lang.String directoryName,
AsyncCallback.CreateDirectory callback,
java.lang.Object tag)
Change directory on the FTP server asynchronously. |
DeleteDirectoryResult |
deleteDirectoryAsync(java.lang.String directoryName,
AsyncCallback.DeleteDirectory callback,
java.lang.Object tag)
Delete a directory on the FTP server asynchronously. |
DeleteDirectoryResult |
deleteDirectoryAsync(java.lang.String directoryName,
boolean recursive,
AsyncCallback.DeleteDirectory callback,
java.lang.Object tag)
Delete a directory on the FTP server asynchronously, and optionally sub-directories. |
DeleteFileResult |
deleteFileAsync(java.lang.String remoteFileName,
AsyncCallback.DeleteFile callback,
java.lang.Object tag)
Deletes a remote file asynchronously. |
DeleteMultipleFilesResult |
deleteMultipleFilesAsync(java.io.FileFilter filter,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files in the current directory that match the supplied wildcard |
DeleteMultipleFilesResult |
deleteMultipleFilesAsync(java.lang.String wildcard,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files in the current directory that match the supplied wildcard |
DeleteMultipleFilesResult |
deleteMultipleFilesAsync(java.lang.String remoteDirectory,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files that match the supplied wildcard in the supplied remote directory asynchronously. |
DeleteMultipleFilesResult |
deleteMultipleFilesAsync(java.lang.String remoteDirectory,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
Deletes remote files that match the supplied wildcard in the supplied remote directory asynchronously. |
DirectoryListResult |
directoryListAsync(java.lang.String directoryName,
AsyncCallback.DirectoryList callback,
java.lang.Object tag)
List a directory on the FTP server asynchronously. |
DirectoryNameListResult |
directoryNameListAsync(java.lang.String directoryName,
boolean isLongListing,
AsyncCallback.DirectoryNameList callback,
java.lang.Object tag)
List a directory on the FTP server asynchronously. |
DisconnectResult |
disconnectAsync(AsyncCallback.Disconnect callback,
java.lang.Object tag)
Disconnect from the FTP server asynchronously. |
DisconnectResult |
disconnectAsync(boolean immediate,
AsyncCallback.Disconnect callback,
java.lang.Object tag)
Disconnect from the FTP server asynchronously. |
DownloadByteArrayResult |
downloadByteArrayAsync(java.lang.String remoteFileName,
AsyncCallback.DownloadByteArray callback,
java.lang.Object tag)
Download a file from the FTP server asynchronously to a byte array |
DownloadFileResult |
downloadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.DownloadFile callback,
java.lang.Object tag)
Download a file from the FTP server asynchronously. |
DownloadMultipleResult |
downloadMultipleAsync(java.lang.String localDir,
java.io.FileFilter filter,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory. |
DownloadMultipleResult |
downloadMultipleAsync(java.lang.String localDir,
java.lang.String wildcard,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory. |
DownloadMultipleResult |
downloadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory. |
DownloadMultipleResult |
downloadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
Downloads remote files to the supplied local directory that match the supplied wildcard from the current remote directory. |
DownloadStreamResult |
downloadStreamAsync(java.lang.String remoteFileName,
AsyncCallback.DownloadStream callback,
java.lang.Object tag)
Download a file from the FTP server as a stream, asynchronously. |
ExecuteCommandResult |
executeCommandAsync(java.lang.String command,
AsyncCallback.ExecuteCommand callback,
java.lang.Object tag)
Request that the remote server execute the literal command supplied. |
ExistsResult |
existsAsync(java.lang.String remoteFileName,
AsyncCallback.Exists callback,
java.lang.Object tag)
Determine asynchronously if a remote file exists. |
FTPTransferType |
getContentType()
Get the current content type. |
AsyncCallback.Disconnect |
getDisconnectCallback()
Get the currently set disconnect callback. |
ModifiedTimeResult |
getModifiedTimeAsync(java.lang.String remoteFileName,
AsyncCallback.GetModifiedTime callback,
java.lang.Object tag)
Get the modified-time of a remote file asynchronously. |
SizeResult |
getSizeAsync(java.lang.String remoteFileName,
AsyncCallback.Size callback,
java.lang.Object tag)
Get the size of a remote file asynchronously. |
GetSystemTypeResult |
getSystemTypeAsync(AsyncCallback.GetSystemType callback,
java.lang.Object tag)
Get a string that represents the remote system that the client is logged into. |
boolean |
isDetectContentType()
Get the detect content type flag. |
RenameResult |
renameAsync(java.lang.String renameFromName,
java.lang.String renameToName,
AsyncCallback.Rename callback,
java.lang.Object tag)
Rename a remote file asynchronously. |
void |
setContentType(FTPTransferType type)
Set the transfer type, either ASCII or binary. |
void |
setDetectContentType(boolean detectContentType)
Set auto detect of filetypes on or off. |
void |
setDisconnectCallback(AsyncCallback.Disconnect callback)
Set the callback that is called for all disconnects - deliberate and resulting from timeout or error. |
ModifiedTimeResult |
setModifiedTimeAsync(java.lang.String remoteFileName,
java.util.Date modifiedTime,
AsyncCallback.SetModifiedTime callback,
java.lang.Object tag)
Set the modified-time of a remote file asynchronously. |
UploadByteArrayResult |
uploadByteArrayAsync(byte[] bytes,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadByteArray callback,
java.lang.Object tag)
Upload a byte array to the FTP server asynchronously. |
UploadFileResult |
uploadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
AsyncCallback.UploadFile callback,
java.lang.Object tag)
Upload a file to the FTP server asynchronously. |
UploadFileResult |
uploadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadFile callback,
java.lang.Object tag)
Upload a file to the FTP server asynchronously. |
UploadMultipleResult |
uploadMultipleAsync(java.lang.String localDir,
java.io.FileFilter filter,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied FileFilter into the current remote directory. |
UploadMultipleResult |
uploadMultipleAsync(java.lang.String localDir,
java.lang.String wildcard,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied wildcard into the current remote directory. |
UploadMultipleResult |
uploadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied wildcard into the supplied remote directory. |
UploadMultipleResult |
uploadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
Uploads local files from the supplied local directory that match the supplied wildcard into the supplied remote directory. |
UploadStreamResult |
uploadStreamAsync(java.lang.String remoteFileName,
AsyncCallback.UploadStream callback,
java.lang.Object tag)
Upload a file to the FTP server by writing to a stream, asynchronously. |
UploadStreamResult |
uploadStreamAsync(java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadStream callback,
java.lang.Object tag)
Upload a file to the FTP server by writing to a stream, asynchronously. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncFileTransferClient(int initialPoolSize,
int maxPoolSize)
poolsize - size of connection pool (i.e. number of managed connections)public AsyncFileTransferClient()
| Method Detail |
|---|
public void setContentType(FTPTransferType type)
throws java.io.IOException,
FTPException
setContentType in interface FileTransferClientInterfacesetContentType in class SecureFileTransferClienttype - transfer type
FTPException
java.io.IOException
FTPExceptionpublic FTPTransferType getContentType()
getContentType in interface FileTransferClientInterfacegetContentType in class SecureFileTransferClientpublic void setDetectContentType(boolean detectContentType)
setDetectContentType in interface FileTransferClientInterfacesetDetectContentType in class SecureFileTransferClientdetectContentType - true if detecting content type, false if notpublic boolean isDetectContentType()
isDetectContentType in interface FileTransferClientInterfaceisDetectContentType in class SecureFileTransferClient
public ConnectResult connectAsync(AsyncCallback.Connect callback,
java.lang.Object tag)
throws FTPException
callback - callback to be notified when connection is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
Can be set to null.
FTPException
public ExecuteCommandResult executeCommandAsync(java.lang.String command,
AsyncCallback.ExecuteCommand callback,
java.lang.Object tag)
throws FTPException
It is up to the user to send a sensible command.
command - command string
FTPException
java.io.IOException
public GetSystemTypeResult getSystemTypeAsync(AsyncCallback.GetSystemType callback,
java.lang.Object tag)
throws FTPException
command - command string
FTPException
java.io.IOException
public DirectoryNameListResult directoryNameListAsync(java.lang.String directoryName,
boolean isLongListing,
AsyncCallback.DirectoryNameList callback,
java.lang.Object tag)
throws FTPException
directoryName - name of the directory (generally not a path)isLongListing - true if the listing is a long format listingcallback - callback to be notified when connection is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DirectoryListResult directoryListAsync(java.lang.String directoryName,
AsyncCallback.DirectoryList callback,
java.lang.Object tag)
throws FTPException
directoryName - name of the directory (generally not a path)callback - callback to be notified when connection is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DownloadByteArrayResult downloadByteArrayAsync(java.lang.String remoteFileName,
AsyncCallback.DownloadByteArray callback,
java.lang.Object tag)
throws FTPException
remoteFileName - name of the remote file to be downloadedcallback - callback to be notified when download is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DownloadFileResult downloadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.DownloadFile callback,
java.lang.Object tag)
throws FTPException
localFileName - name (or full path) of the local file to be downloaded toremoteFileName - name of the remote file to be downloadedcallback - callback to be notified when connection is completedwriteMode - mode in which the file is written to the servertag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DownloadStreamResult downloadStreamAsync(java.lang.String remoteFileName,
AsyncCallback.DownloadStream callback,
java.lang.Object tag)
throws FTPException
remoteFileName - name of the remote file to be downloadedcallback - callback to be notified when connection is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadFileResult uploadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
AsyncCallback.UploadFile callback,
java.lang.Object tag)
throws FTPException
RemoteFileResult.getRemoteFileName().
localFileName - name (or full path) of the local file to be downloaded toremoteFileName - name of the remote file to be downloaded (or null to generate a unique name)callback - callback to be notified when upload is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadFileResult uploadFileAsync(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadFile callback,
java.lang.Object tag)
throws FTPException
RemoteFileResult.getRemoteFileName().
localFileName - name (or full path) of the local file to be downloaded toremoteFileName - name of the remote file to be downloaded (or null to generate a unique name)writeMode - mode in which the file is written to the servercallback - callback to be notified when upload is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadByteArrayResult uploadByteArrayAsync(byte[] bytes,
java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadByteArray callback,
java.lang.Object tag)
throws FTPException
RemoteFileResult.getRemoteFileName().
bytes - byte array to uploadremoteFileName - name of the remote filewriteMode - mode in which the file is written to the servercallback - callback to be notified when upload is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadStreamResult uploadStreamAsync(java.lang.String remoteFileName,
AsyncCallback.UploadStream callback,
java.lang.Object tag)
throws FTPException
RemoteFileResult.getRemoteFileName().
remoteFileName - name of the remote file to be uploadedcallback - callback to be notified when upload is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadStreamResult uploadStreamAsync(java.lang.String remoteFileName,
WriteMode writeMode,
AsyncCallback.UploadStream callback,
java.lang.Object tag)
throws FTPException
RemoteFileResult.getRemoteFileName().
remoteFileName - name of the remote file to be uploadedwriteMode - mode in which the file is written to the servercallback - callback to be notified when upload is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public SizeResult getSizeAsync(java.lang.String remoteFileName,
AsyncCallback.Size callback,
java.lang.Object tag)
throws FTPException
remoteFileName - name of remote filecallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public ModifiedTimeResult getModifiedTimeAsync(java.lang.String remoteFileName,
AsyncCallback.GetModifiedTime callback,
java.lang.Object tag)
throws FTPException
remoteFileName - name of remote filecallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public ModifiedTimeResult setModifiedTimeAsync(java.lang.String remoteFileName,
java.util.Date modifiedTime,
AsyncCallback.SetModifiedTime callback,
java.lang.Object tag)
throws FTPException
remoteFileName - name of remote filemodifiedTime - modified time to setcallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public ExistsResult existsAsync(java.lang.String remoteFileName,
AsyncCallback.Exists callback,
java.lang.Object tag)
throws FTPException
remoteFileName - name of remote filecallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DeleteFileResult deleteFileAsync(java.lang.String remoteFileName,
AsyncCallback.DeleteFile callback,
java.lang.Object tag)
throws FTPException
remoteFileName - name of remote filecallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DeleteMultipleFilesResult deleteMultipleFilesAsync(java.io.FileFilter filter,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
throws FTPException
filter - filename filtercallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
java.io.IOException
public DeleteMultipleFilesResult deleteMultipleFilesAsync(java.lang.String wildcard,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
throws FTPException
wildcard - wildcard string (supporting '*' and '?')
FTPException
java.io.IOException
public DeleteMultipleFilesResult deleteMultipleFilesAsync(java.lang.String remoteDirectory,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
throws FTPException
remoteDirectory - name of remote directorywildcard - wildcard string (supporting '*' and '?')callback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DeleteMultipleFilesResult deleteMultipleFilesAsync(java.lang.String remoteDirectory,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.DeleteMultipleFiles callback,
java.lang.Object tag)
throws FTPException
remoteDirectory - name of remote directoryfilter - filename filtercallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public RenameResult renameAsync(java.lang.String renameFromName,
java.lang.String renameToName,
AsyncCallback.Rename callback,
java.lang.Object tag)
throws FTPException
renameFromName - original namerenameToName - new namecallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public ChangeDirectoryResult changeDirectoryAsync(java.lang.String directoryName,
AsyncCallback.ChangeDirectory callback,
java.lang.Object tag)
throws FTPException
directoryName - name the remote directory to change intocallback - callback to be notified when the directory change is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public ChangeDirectoryResult changeToParentDirectoryAsync(AsyncCallback.ChangeDirectory callback,
java.lang.Object tag)
throws FTPException
callback - callback to be notified when the directory change is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public CreateDirectoryResult createDirectoryAsync(java.lang.String directoryName,
AsyncCallback.CreateDirectory callback,
java.lang.Object tag)
throws FTPException
directoryName - name the remote directory to change intocallback - callback to be notified when the directory change is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DeleteDirectoryResult deleteDirectoryAsync(java.lang.String directoryName,
AsyncCallback.DeleteDirectory callback,
java.lang.Object tag)
throws FTPException
directoryName - name the remote directory to deletecallback - callback to be notified when the directory change is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DeleteDirectoryResult deleteDirectoryAsync(java.lang.String directoryName,
boolean recursive,
AsyncCallback.DeleteDirectory callback,
java.lang.Object tag)
throws FTPException
directoryName - name the remote directory to deleterecursive - callback - callback to be notified when the directory delete is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadMultipleResult uploadMultipleAsync(java.lang.String localDir,
java.io.FileFilter filter,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
throws FTPException
localDir - name of local directoryfilter - filename filtercallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadMultipleResult uploadMultipleAsync(java.lang.String localDir,
java.lang.String wildcard,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
throws FTPException
localDir - name of local directorywildcard - wildcard filter for files to be uploaded (supports '*' and '?')callback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadMultipleResult uploadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
throws FTPException
localDir - name of local directoryremoteDir - name of remote directorywildcard - wildcard filter for files to be uploaded (supports '*' and '?')recursive - if true, operation is recursive through subdirectoriescallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public UploadMultipleResult uploadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.io.FileFilter filter,
boolean recursive,
AsyncCallback.UploadMultiple callback,
java.lang.Object tag)
throws FTPException
localDir - name of local directoryremoteDir - name of remote directoryfilter - filename filter for files to be uploadedrecursive - if true, operation is recursive through sub-directoriescallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DownloadMultipleResult downloadMultipleAsync(java.lang.String localDir,
java.io.FileFilter filter,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
throws FTPException
localDir - name of local directoryfilter - filename filtercallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DownloadMultipleResult downloadMultipleAsync(java.lang.String localDir,
java.lang.String wildcard,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
throws FTPException
localDir - name of local directorywildcard - wildcard filter for files to be uploaded (supports '*' and '?')callback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).
FTPException
public DownloadMultipleResult downloadMultipleAsync(java.lang.String localDir,
java.lang.String remoteDir,
java.lang.String wildcard,
boolean recursive,
AsyncCallback.DownloadMultiple callback,
java.lang.Object tag)
throws FTPException
localDir - name of local directoryremoteDir - name of remote directorywildcard - wildcard filter for files to be uploaded (supports '*' and '?')recursive - if true, operation is recursive through sub-directoriescallback - callback to be notified when operation is completedtag - any object reference can be saved in this tag and can be
accessed later from the result object (e.g. in the callback).