com.ssh.sft
Interface ProgressListener


public interface ProgressListener

The listener interface for the progression of a single file operation. When a file operation (e.g. copy) is initiated with an associated ProgressListener, the listener's progress(long) method is periodically called to indicate the status of the ongoing operation. When the operation is finished, the finish() method is called.


Method Summary
 void finish()
          Notify the listener that the operation has now finished.
 void progress(long progressed)
          Notify the listener that progress has been made in the operation.
 

Method Detail

progress

public void progress(long progressed)
Notify the listener that progress has been made in the operation.

Parameters:
progressed - the length of the splice that has been progressed since the last time this method was called

finish

public void finish()
Notify the listener that the operation has now finished.