Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.6k views
in Java FTP by (180 points)
This is the code :
import com.enterprisedt.net.ftp.EventListener;
import com.enterprisedt.util.debug.FileAppender;
import com.enterprisedt.util.debug.Level;
import com.enterprisedt.util.debug.Logger;
import com.enterprisedt.util.debug.StandardOutputAppender;

public class EventListenerImpl implements EventListener {
      
    Logger log = Logger.getLogger("EventListenerImpl");
   
   public void bytesTransferred(String connId, String remoteFilename, long bytes ) {  
   
        log.info("Bytes transferred=" + bytes);
    }
   
    public void commandSent(String connId, String cmd) {
       
       log.info("Command sent: " + cmd);
    }
 
    public void replyReceived(String connId, String reply) {
        
       log.info("Reply received: " + reply);
    }
    
    public void downloadStarted(String connId, String remoteFilename) {
        
       log.info("Started download: " + remoteFilename);
    }
    
    public void downloadCompleted(String connId, String remoteFilename) {
       
       log.info("Completed download: " + remoteFilename);
      }
    
    public void uploadStarted(String connId, String remoteFilename) {

       log.info("Started upload: " + remoteFilename);
    }
    
    public void uploadCompleted(String connId, String remoteFilename) {
       
       log.info("Completed upload: " + remoteFilename);   
    }
   
}
How should I do?

Please log in or register to answer this question.

Categories

...