Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.finj
Class FTPClientAdapter  view FTPClientAdapter download FTPClientAdapter.java

java.lang.Object
  extended byorg.finj.FTPClientAdapter
All Implemented Interfaces:
java.util.EventListener, FTPClientObserver

public class FTPClientAdapter
extends java.lang.Object
implements FTPClientObserver

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 FTPClient when this is added or removed as an observer.

Specified by:
isObserving in interface FTPClientObserver
Since:
v1.0

controlConnectionOpened

public void controlConnectionOpened()
Method called whenever a new connection is opened with a server.

Specified by:
controlConnectionOpened in interface FTPClientObserver
Since:
v1.0

controlConnectionClosed

public void controlConnectionClosed()
Method called whenever a new connection is closed with a server.

Specified by:
controlConnectionClosed in interface FTPClientObserver
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:
commandSent in interface FTPClientObserver
Since:
v1.0

replyReceived

public void replyReceived(FTPReply reply)
Method called when a reply is received from the FTP server.

Specified by:
replyReceived in interface FTPClientObserver
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:
dataReceived in interface FTPClientObserver
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:
dataSent in interface FTPClientObserver
Since:
v1.0