Interface IFileTransferPausable

All Known Implementing Classes:
AbstractRetrieveFileTransfer, UrlConnectionRetrieveFileTransfer

public interface IFileTransferPausable

Adapter interface for pausing and resuming IFileTransfer instances that expose this adapter interface via IAdaptable.getAdapter(Class adapter). To use this interface, clients should do the following:

   IFileTransfer fileTransfer;
   IFileTransferPausable pausable = (IFileTransferPausable) fileTransfer.getAdapter(IFileTransferPausable.class);
   if (pausable !=null) {
      ... use it
   } else {
      ... does not support pausing

Method Summary
 boolean isPaused()
 boolean pause()
          Pause file transfer.
 boolean resume()
          Resume file transfer after having been paused.

Method Detail


boolean pause()
Pause file transfer. Returns true if the associated IFileTransfer is successfully paused. Returns false if the implementing file transfer cannot be paused, or transfer has already completed.

true if file transfer successfully paused. False if cannot be paused, or the transfer has already completed


boolean isPaused()
true if file transfer paused, false if not paused


boolean resume()
Resume file transfer after having been paused. If successfully resumed, then returns true. If the associated IFileShare is not already paused, or has already completed then this method returns false.