Receives file transfer progress events.
public interface FileTransferProgressListener
All members of FileTransferProgressListener interface, including all inherited members.
fileTransferProgressed method
Create a new class to receive progress reports during a file transfer.
The following example illustrates a simple SyncObserver interface that implements the FileTransferProgressListener 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. }