Package com.enterprisedt.net.ftp.async
Class UploadByteArrayResult
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.UploadByteArrayResult
Result from down loading task as an input stream
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Field Summary
Fields inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
cancelled, remoteFileNameFields inherited from class com.enterprisedt.net.ftp.async.RemoteTransferResult
DEFAULT_NOTIFY_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionUploadByteArrayResult(byte[] bytes, String remoteFileName, WriteMode writeMode) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidendAsync()This method is called to complete the asynchronous operation.byte[]Get the local bytes.What write mode is this operation?Methods inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
addProgressMonitor, getRemoteFileName, isCancelledMethods inherited from class com.enterprisedt.net.ftp.async.RemoteTransferResult
getMinTransferNotifyPeriod, getNotifyInterval, setMinTransferNotifyPeriod, setNotifyIntervalMethods 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
-
Constructor Details
-
UploadByteArrayResult
Constructor.- Parameters:
bytes- source bytesremoteFileName- remote file's nameappend- true if appending to remote file
-
-
Method Details
-
getWriteMode
What write mode is this operation?- Returns:
- FTPWriteMode
-
getLocalBytes
public byte[] getLocalBytes()Get the local bytes.- Returns:
- the bytes to transfer
-
endAsync
This method is called to complete the asynchronous operation. The same exceptions will be thrown as if the operation was performed synchronously.- Throws:
IOExceptionFTPException
-