1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package gnu.inet.ftp;
22
23 import java.util.Vector;
24
25 public abstract interface TransferEventSource {
26
27 /***
28 * register a transfer listener with the event source. Each transfer
29 * listener registered with the event source will be notified whenever a
30 * transfer event occurs.
31 *
32 * @param listener
33 * the TransferListener to register with this event source
34 */
35 public abstract void addTransferListener(TransferListener listener);
36
37 /***
38 * register a set of transfer listeners with the event source. Each transfer
39 * listener registered with the event source will be notified whenever a
40 * transfer event occurs.
41 *
42 * @param listeners
43 * the TransferListeners to register with this event source
44 */
45 public abstract void addTransferListeners(Vector listeners);
46
47 /***
48 * De-register a transfer listener with the event source. Once a listener
49 * has been de-registered, it should not receive any more transfer events
50 * from the event source however this is not guaranteed.
51 */
52 public abstract void removeTransferListener(TransferListener listener);
53
54 }