com.enterprisedt.net.ftp.async
Class UploadStreamResult

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.UploadStreamResult

public class UploadStreamResult
extends TransferFileResult

Result from downloading task as an input stream

Version:
$Revision: 1.4 $
Author:
Bruce Blackshaw

Field Summary
 
Fields inherited from class com.enterprisedt.net.ftp.async.RemoteFileResult
cancelled, DEFAULT_NOTIFY_INTERVAL, remoteFileName
 
Constructor Summary
UploadStreamResult(java.lang.String remoteFileName, WriteMode writeMode)
          Constructor.
 
Method Summary
 FileTransferOutputStream getOutputStream()
          Get the input stream from which to read the file from the server
 void setOutputStream(FileTransferOutputStream str)
          Set the input stream.
 void setOutputStreamFailure(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

UploadStreamResult

public UploadStreamResult(java.lang.String remoteFileName,
                          WriteMode writeMode)
Constructor.

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

setOutputStream

public void setOutputStream(FileTransferOutputStream str)
Set the input stream. For internal use.

Parameters:
str - reference to the stream

setOutputStreamFailure

public void setOutputStreamFailure(java.lang.Throwable t)

getOutputStream

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

Returns:
FileTransferOutputStream
Throws:
java.lang.Throwable


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