|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.enterprisedt.net.ftp.EventAdapter
public class EventAdapter
An adapter class that implements dummy methods of the EventListener interface. Useful for quickly implementing a single method of EventListener.
Constructor Summary | |
---|---|
EventAdapter()
|
Method Summary | |
---|---|
void |
bytesTransferred(java.lang.String connId,
java.lang.String remoteFilename,
long count)
Report the number of bytes transferred so far. |
void |
commandSent(java.lang.String connId,
java.lang.String cmd)
Log an FTP command being sent to the server. |
void |
downloadCompleted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that a download has completed |
void |
downloadStarted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that a download has started |
void |
replyReceived(java.lang.String connId,
java.lang.String reply)
Log an FTP reply being sent back to the client. |
void |
uploadCompleted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that an upload has completed |
void |
uploadStarted(java.lang.String connId,
java.lang.String remoteFilename)
Notifies that an upload has started |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventAdapter()
Method Detail |
---|
public void commandSent(java.lang.String connId, java.lang.String cmd)
commandSent
in interface EventListener
cmd
- command stringpublic void replyReceived(java.lang.String connId, java.lang.String reply)
replyReceived
in interface EventListener
reply
- reply stringpublic void bytesTransferred(java.lang.String connId, java.lang.String remoteFilename, long count)
bytesTransferred
in interface EventListener
count
- count of bytes transferredremoteFilename
- Name of remote filepublic void downloadStarted(java.lang.String connId, java.lang.String remoteFilename)
downloadStarted
in interface EventListener
remoteFilename
- remote file namepublic void downloadCompleted(java.lang.String connId, java.lang.String remoteFilename)
downloadCompleted
in interface EventListener
remoteFilename
- remote file namepublic void uploadStarted(java.lang.String connId, java.lang.String remoteFilename)
uploadStarted
in interface EventListener
remoteFilename
- remote file namepublic void uploadCompleted(java.lang.String connId, java.lang.String remoteFilename)
uploadCompleted
in interface EventListener
remoteFilename
- remote file name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |