Class UploadByteArrayResult


public class UploadByteArrayResult extends RemoteFileResult
Result from down loading task as an input stream
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • UploadByteArrayResult

      public UploadByteArrayResult(byte[] bytes, String remoteFileName, WriteMode writeMode)
      Constructor.
      Parameters:
      bytes - source bytes
      remoteFileName - remote file's name
      append - true if appending to remote file
  • Method Details

    • getWriteMode

      public WriteMode getWriteMode()
      What write mode is this operation?
      Returns:
      FTPWriteMode
    • getLocalBytes

      public byte[] getLocalBytes()
      Get the local bytes.
      Returns:
      the bytes to transfer
    • endAsync

      public void endAsync() throws 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:
      IOException
      FTPException