it.sauronsoftware.ftp4j
Interface FTPDataTransferListener


public interface FTPDataTransferListener

This interface describes the methods requested by an object that can listen data transfer operations. You can supply an object implementing this interface to any upload/download method of the client.

Author:
Carlo Pelliccia

Method Summary
 void aborted()
          Called to notify the listener that the transfer operation has been aborted.
 void completed()
          Called to notify the listener that the transfer operation has been successfully complete.
 void failed()
          Called to notify the listener that the transfer operation has failed due to an error.
 void started()
          Called to notify the listener that the transfer operation has been initialized.
 void transferred(int length)
          Called to notify the listener that some bytes have been transmitted.
 

Method Detail

started

void started()
Called to notify the listener that the transfer operation has been initialized.


transferred

void transferred(int length)
Called to notify the listener that some bytes have been transmitted.

Parameters:
length - The number of the bytes transmitted since the last time the method was called (or since the begin of the operation, at the first call received).

completed

void completed()
Called to notify the listener that the transfer operation has been successfully complete.


aborted

void aborted()
Called to notify the listener that the transfer operation has been aborted.


failed

void failed()
Called to notify the listener that the transfer operation has failed due to an error.