|
|||||||||
| Home >> All >> org >> [ finj overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.finj
Class FTPClientAdapter

java.lang.Objectorg.finj.FTPClientAdapter
- All Implemented Interfaces:
- java.util.EventListener, FTPClientObserver
- public class FTPClientAdapter
- extends java.lang.Object
- implements FTPClientObserver
- extends java.lang.Object
An adapter class for receiving FTPClient observations.
The methods in this class are empty.
This class exists as convenience for creating observer objects.
Extend this class to create a FTPClientObserver and
override the methods for the events of interest. (If you implement
the FTPClientObserver interface directly, you have
to define all of the methods in it. This class defines null methods
for them all, so you only have to define methods for observations
you care about.)
- Version:
- $Id$
| Constructor Summary | |
FTPClientAdapter()
Constructs a new instance of this class. |
|
| Method Summary | |
void |
commandSent(java.lang.String command)
Method called when a command has been sent to the FTP server. |
void |
controlConnectionClosed()
Method called whenever a new connection is closed with a server. |
void |
controlConnectionOpened()
Method called whenever a new connection is opened with a server. |
void |
dataReceived(int bytes)
Method called whenever data is received from the FTP server. |
void |
dataSent(int bytes)
Method called whenever data is sent to the FTP server. |
void |
isObserving(boolean isIt)
Method called by an FTPClient when
this is added or removed as an observer. |
void |
replyReceived(FTPReply reply)
Method called when a reply is received from the FTP server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
FTPClientAdapter
public FTPClientAdapter()
- Constructs a new instance of this class.
- Since:
- v1.0
| Method Detail |
isObserving
public void isObserving(boolean isIt)
- Method called by an
FTPClientwhenthisis added or removed as an observer.- Specified by:
isObservingin interfaceFTPClientObserver
- Since:
- v1.0
controlConnectionOpened
public void controlConnectionOpened()
- Method called whenever a new connection is opened with a
server.
- Specified by:
controlConnectionOpenedin interfaceFTPClientObserver
- Since:
- v1.0
controlConnectionClosed
public void controlConnectionClosed()
- Method called whenever a new connection is closed with a
server.
- Specified by:
controlConnectionClosedin interfaceFTPClientObserver
- Since:
- v1.0
commandSent
public void commandSent(java.lang.String command)
- Method called when a command has been sent to the FTP server.
- Specified by:
commandSentin interfaceFTPClientObserver
- Since:
- v1.0
replyReceived
public void replyReceived(FTPReply reply)
- Method called when a reply is received from the FTP server.
- Specified by:
replyReceivedin interfaceFTPClientObserver
- Since:
- v1.0
dataReceived
public void dataReceived(int bytes)
- Method called whenever data is received from the FTP server.
This is a convenient way to monitor the work of the
FTPClient.- Specified by:
dataReceivedin interfaceFTPClientObserver
- Since:
- v1.0
dataSent
public void dataSent(int bytes)
- Method called whenever data is sent to the FTP server.
This is a convenient way to monitor the work of the
FTPClient.- Specified by:
dataSentin interfaceFTPClientObserver
- Since:
- v1.0
|
|||||||||
| Home >> All >> org >> [ finj overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.finj.FTPClientAdapter