Secure FTP Factory

com.jscape.inet.scp.events
Class ScpTransferProgressEvent

java.lang.Object
  extended by ScpEvent
      extended by com.jscape.inet.scp.events.ScpTransferProgressEvent

public final class ScpTransferProgressEvent
extends ScpEvent

Scp transfer progress event.

Version:
1.0
Author:
Alex

Field Summary
static int DOWNLOAD
          Indicates DOWNLOAD process
static int UPLOAD
          Indicates UPLOAD process
 
Constructor Summary
ScpTransferProgressEvent(Scp source, java.lang.String filename, long transferred, long size, int mode)
          Creates a new event instance.
 
Method Summary
 void accept(ScpEventListener listener)
           
 java.lang.String getFilename()
          Returns file name.
 int getMode()
          Returns transfer mode.
 long getSize()
          Returns file size in bytes.
 long getTransferredBytes()
          Returns transferred bytes count.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPLOAD

public static final int UPLOAD
Indicates UPLOAD process

See Also:
Constant Field Values

DOWNLOAD

public static final int DOWNLOAD
Indicates DOWNLOAD process

See Also:
Constant Field Values
Constructor Detail

ScpTransferProgressEvent

public ScpTransferProgressEvent(Scp source,
                                java.lang.String filename,
                                long transferred,
                                long size,
                                int mode)
Creates a new event instance.

Parameters:
source - source
filename - filename
transferred - transferred bytes count
size - total size in bytes
mode - transfer mode
Method Detail

getFilename

public java.lang.String getFilename()
Returns file name.

Returns:
file name

getTransferredBytes

public long getTransferredBytes()
Returns transferred bytes count.

Returns:
transferred bytes count

getSize

public long getSize()
Returns file size in bytes.

Returns:
file size in bytes

getMode

public int getMode()
Returns transfer mode.

Returns:
transfer mode

accept

public void accept(ScpEventListener listener)
See Also:
ScpEvent#accept(ScpEventListener)

Secure FTP Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved