The listener interface for receiving file transfer progress events.
public interface FileTransferProgressListener
All members of FileTransferProgressListener interface, including all inherited members.
fileTransferProgressed method
To receive progress reports during file transfer, you must create a new class that performs the task.
The following example illustrates a simple SyncObserver interface:
class MyObserver implements FileTransferProgressListener { public boolean fileTransferProgressed( FileTransferProgressData data ) { System.out.println( "file transfer progress " + " bytes received = " + data.getBytesTransferred() ); return false; // Always continue file transfer. } public MyObserver() {} // The default constructor. }