com.enterprisedt.net.ftp.async
Class TransferFileResult
java.lang.Object
com.enterprisedt.net.ftp.async.AsyncResult
com.enterprisedt.net.ftp.async.RemoteTransferResult
com.enterprisedt.net.ftp.async.RemoteFileResult
com.enterprisedt.net.ftp.async.TransferFileResult
- Direct Known Subclasses:
- DownloadFileResult, DownloadStreamResult, UploadFileResult, UploadStreamResult
public class TransferFileResult
- extends RemoteFileResult
The result object from a file transfer operation.
- Version:
- $Revision: 1.11 $
- Author:
- Bruce Blackshaw
|
Constructor Summary |
TransferFileResult(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
Constructor. |
| Methods inherited from class com.enterprisedt.net.ftp.async.AsyncResult |
cancelTask, endAsyncCalled, endAsyncInternal, getClient, getLocalContext, getTag, getTask, getTaskDescription, getTaskId, getThrowable, isCompleted, isSuccessful, notifyComplete, setAsIfCompleted, setClient, setEndAsyncCalled, setLocalContext, setSuccessful, setTag, setTask, setThrowable, waitTillComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransferFileResult
public TransferFileResult(java.lang.String localFileName,
java.lang.String remoteFileName,
WriteMode writeMode)
- Constructor.
- Parameters:
localFileName - local file's nameremoteFileName - remote file's nameappend - true if appending to remote file
getWriteMode
public WriteMode getWriteMode()
- What write mode is this operation?
- Returns:
- FTPWriteMode
getLocalFileName
public java.lang.String getLocalFileName()
- Get the local file name.
- Returns:
- the local file name, or null if no local file.
endAsync
public void endAsync()
throws java.io.IOException,
FTPException
- This method is called to complete the asynchronous operation. The
same exceptions will be thrown as if the operation was performed
synchronously.
- Throws:
java.io.IOException
FTPException
Copyright © 2001-2009 Enterprise Distributed Technologies Ltd. All Rights Reserved.