com.enterprisedt.net.ftp.async
Class DownloadStreamResult

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.TransferFileResult
              extended by com.enterprisedt.net.ftp.async.DownloadStreamResult

public class DownloadStreamResult
extends TransferFileResult

Result from downloading task as an input stream

Version:
$Revision: 1.6 $
Author:
Bruce Blackshaw

Field Summary
 
Fields inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
cancelled, DEFAULT_NOTIFY_INTERVAL, remoteFileName
 
Constructor Summary
DownloadStreamResult(java.lang.String remoteFileName)
          Constructor.
 
Method Summary
 FileTransferInputStream getInputStream()
          Get the input stream from which to read the file from the server
 void setInputStream(FileTransferInputStream str)
          Set the input stream.
 void setInputStreamFailure(java.lang.Throwable t)
           
 
Methods inherited from class com.enterprisedt.net.ftp.async.TransferFileResult
endAsync, getLocalFileName, getWriteMode
 
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

DownloadStreamResult

public DownloadStreamResult(java.lang.String remoteFileName)
Constructor.

Parameters:
context -
direction -
append -
filename -
Method Detail

setInputStream

public void setInputStream(FileTransferInputStream str)
Set the input stream. For internal use.

Parameters:
str - reference to the stream

setInputStreamFailure

public void setInputStreamFailure(java.lang.Throwable t)

getInputStream

public FileTransferInputStream getInputStream()
                                       throws java.lang.Throwable
Get the input stream from which to read the file from the server

Returns:
InputStream
Throws:
java.lang.Throwable


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