Secure iNet Factory

com.jscape.inet.ftp
Class FtpUploadEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.jscape.inet.ftp.FtpEvent
          extended bycom.jscape.inet.ftp.FtpUploadEvent
All Implemented Interfaces:
java.io.Serializable

public class FtpUploadEvent
extends FtpEvent

Fired when file is uploaded to FTP server.

See Also:
Serialized Form

Constructor Summary
FtpUploadEvent(java.lang.Object source, java.lang.String filename, java.lang.String path, long size, long time)
          Creates FtpUploadEvent.
 
Method Summary
 void accept(FtpListener listener)
          Event is accepted by listener
 java.lang.String getFilename()
          Gets name of file uploaded.
 java.lang.String getPath()
          Gets remote directory path that file was uploaded to
 long getSize()
          Gets total bytes transmitted
 long getTime()
          Gets total time to transfer file measured in milliseconds
 java.lang.String toString()
          Gets String equivalent of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FtpUploadEvent

public FtpUploadEvent(java.lang.Object source,
                      java.lang.String filename,
                      java.lang.String path,
                      long size,
                      long time)
Creates FtpUploadEvent.

Parameters:
source - the source of the event
filename - the file uploaded
path - the remote directory path flie was uploaded to
size - the size of the file uploaded
time - the time to upload file in milliseconds
Method Detail

getFilename

public java.lang.String getFilename()
Gets name of file uploaded.

Returns:
filename

getSize

public long getSize()
Gets total bytes transmitted

Returns:
bytes transmitted

getTime

public long getTime()
Gets total time to transfer file measured in milliseconds

Returns:
total time

getPath

public java.lang.String getPath()
Gets remote directory path that file was uploaded to

Returns:
remote directory path

accept

public void accept(FtpListener listener)
Description copied from class: FtpEvent
Event is accepted by listener

Specified by:
accept in class FtpEvent
Parameters:
listener -

toString

public java.lang.String toString()
Gets String equivalent of this event.

Returns:
the String equivalent for this event

Secure iNet Factory

Copyright JSCAPE 1999-2008 All Rights Reserved