Package com.enterprisedt.net.ftp
Class EventAdapter
java.lang.Object
com.enterprisedt.net.ftp.EventAdapter
- All Implemented Interfaces:
EventListener
An adapter class that implements dummy methods of the EventListener
interface. Useful for quickly implementing a single method of EventListener.
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbytesTransferred(String connId, String remoteFilename, long count) Report the number of bytes transferred so far.voidcommandSent(String connId, String cmd) Log an FTP command being sent to the server.voiddownloadCompleted(String connId, String remoteFilename) Notifies that a download has completedvoiddownloadStarted(String connId, String remoteFilename) Notifies that a download has startedvoidreplyReceived(String connId, String reply) Log an FTP reply being sent back to the client.voiduploadCompleted(String connId, String remoteFilename) Notifies that an upload has completedvoiduploadStarted(String connId, String remoteFilename) Notifies that an upload has started
-
Constructor Details
-
EventAdapter
public EventAdapter()
-
-
Method Details
-
commandSent
Log an FTP command being sent to the server. Not used for SFTP.- Specified by:
commandSentin interfaceEventListener- Parameters:
connId- Identifier of FTP connectioncmd- command string
-
replyReceived
Log an FTP reply being sent back to the client. Not used for SFTP.- Specified by:
replyReceivedin interfaceEventListener- Parameters:
connId- Identifier of FTP connectionreply- reply string
-
bytesTransferred
Report the number of bytes transferred so far. This may not be entirely accurate for transferring text files in ASCII mode, as new line representations can be represented differently on different platforms.- Specified by:
bytesTransferredin interfaceEventListener- Parameters:
connId- Identifier of FTP connectionremoteFilename- Name of remote filecount- count of bytes transferred
-
downloadStarted
Notifies that a download has started- Specified by:
downloadStartedin interfaceEventListener- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-
downloadCompleted
Notifies that a download has completed- Specified by:
downloadCompletedin interfaceEventListener- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-
uploadStarted
Notifies that an upload has started- Specified by:
uploadStartedin interfaceEventListener- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-
uploadCompleted
Notifies that an upload has completed- Specified by:
uploadCompletedin interfaceEventListener- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-