net.sf.jftp.net
Interface ConnectionListener

All Known Implementing Classes:
LocalDir, RemoteDir

public interface ConnectionListener

Classes that implement this interface are notified about various events that may happen. Make sure to use myftpconnection.addConnectionListener(this) in the class to get it working.


Method Summary
 void actionFinished(BasicConnection con)
           
 void connectionFailed(BasicConnection con, java.lang.String why)
           
 void connectionInitialized(BasicConnection con)
           
 void updateProgress(java.lang.String file, java.lang.String type, long bytes)
          Called every n bytes, where n is defined by Settings
 void updateRemoteDirectory(BasicConnection con)
          Called if the remote directory has changed by a chdir() or a finished upload for example.
 

Method Detail

updateRemoteDirectory

public void updateRemoteDirectory(BasicConnection con)
Called if the remote directory has changed by a chdir() or a finished upload for example.


updateProgress

public void updateProgress(java.lang.String file,
                           java.lang.String type,
                           long bytes)
Called every n bytes, where n is defined by Settings


connectionInitialized

public void connectionInitialized(BasicConnection con)

connectionFailed

public void connectionFailed(BasicConnection con,
                             java.lang.String why)

actionFinished

public void actionFinished(BasicConnection con)