Source code: com/yaftp/ftp/FtpBufferTransfertEvent.java
1 /**
2 *
3 * CopyRights Jean-Yves MENGANT 1999,2000,2001,2002
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 package com.yaftp.ftp;
21
22 import java.util.* ;
23
24 /**
25
26 Ftp file transfert buffer event used to notify that a
27 given byte buffer has been sent or received over the network
28
29 @Author Jean-Yves MENGANT
30 @version : 0.0.1
31
32
33 */
34
35
36 public class FtpBufferTransfertEvent
37 extends EventObject {
38
39 private int _bytesTransfered ; // FtpMessage
40
41 // Standard Event constructor
42 public FtpBufferTransfertEvent( Object source ,
43 int bytesTransfered
44 )
45 {
46 super( source ) ;
47 _bytesTransfered = bytesTransfered ;
48 }
49
50 /**
51 @return number of bytes transfered
52 */
53 public int get_bytesTransfered()
54 { return _bytesTransfered ; }
55 public void set_bytesTransfered( int bytesTransfered )
56 { _bytesTransfered = bytesTransfered ; }
57
58 }