|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.myjavaworld.ftp.DataConnectionEvent
public class DataConnectionEvent
An event generated by data connections to notify the status of data transfer.
Field Summary | |
---|---|
static int |
RECEIVE
A constant to indicate that data is being received from the remote host. |
static int |
SEND
A constant to indicate that data is being sent to the remote host. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DataConnectionEvent(Object source,
int id,
long bytesTransferred)
Constructs a DataConnectionEvent . |
Method Summary | |
---|---|
long |
getBytesTransferred()
Returns the number of bytes transferred. |
int |
getId()
Returns the ID ot type of this event. |
String |
toString()
String rpresentation of this event. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SEND
public static final int RECEIVE
Constructor Detail |
---|
public DataConnectionEvent(Object source, int id, long bytesTransferred)
DataConnectionEvent
.
source
- The object that generated this event.id
- Type of this event. Possible types are -
DataConnectionEvent.SEND
DataConnectionEvent.RECEIVE
bytesTransferred
- Number of bytes transferred so far.Method Detail |
---|
public int getId()
public long getBytesTransferred()
public String toString()
toString
in class EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |