com.enterprisedt.net.ftp.async
Class DownloadByteArrayResult

java.lang.Object
  extended by com.enterprisedt.net.ftp.async.AsyncResult
      extended by com.enterprisedt.net.ftp.async.RemoteFileResult
          extended by com.enterprisedt.net.ftp.async.DownloadByteArrayResult

public class DownloadByteArrayResult
extends RemoteFileResult

Result object for downloading byte array

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Field Summary
 
Fields inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
cancelled, DEFAULT_NOTIFY_INTERVAL, remoteFileName
 
Constructor Summary
DownloadByteArrayResult(java.lang.String remoteFileName)
           
 
Method Summary
 byte[] endAsync()
          This method is called to complete the asynchronous operation.
 byte[] getResult()
          Get byte array that was downloaded
 void setResult(byte[] result)
          Set the byte array that was downloaded
 
Methods inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
addProgressMonitor, getMinTransferNotifyPeriod, getNotifyInterval, getRemoteFileName, isCancelled, setMinTransferNotifyPeriod, setNotifyInterval
 
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
 

Constructor Detail

DownloadByteArrayResult

public DownloadByteArrayResult(java.lang.String remoteFileName)
Parameters:
context -
direction -
append -
filename -
Method Detail

endAsync

public byte[] 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

getResult

public byte[] getResult()
Get byte array that was downloaded

Returns:
byte[]

setResult

public void setResult(byte[] result)
Set the byte array that was downloaded

Parameters:
result - byte array


Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.