Secure iNet Factory

com.jscape.inet.sftp.events
Class SftpListingEvent

java.lang.Object
  extended by com.jscape.inet.sftp.events.SftpEvent
      extended by com.jscape.inet.sftp.events.SftpListingEvent

public class SftpListingEvent
extends SftpEvent

This event is fired when directory listing is retrieved from SSH server.


Constructor Summary
SftpListingEvent(Sftp source, java.util.Enumeration files)
          Creates a new event instance.
 
Method Summary
 void acceptListener(SftpListener listener)
          The "backwards dispatching" support.
 java.util.Enumeration getFiles()
          Obtains the file listing.
 
Methods inherited from class com.jscape.inet.sftp.events.SftpEvent
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpListingEvent

public SftpListingEvent(Sftp source,
                        java.util.Enumeration files)
Creates a new event instance.

Parameters:
source - the source of the event
files - an enumeration of SftpFile objects
See Also:
SftpFile
Method Detail

getFiles

public java.util.Enumeration getFiles()
Obtains the file listing.

Returns:
a java.util.Enumeration of SftpFile
See Also:
SftpFile, Enumeration

acceptListener

public void acceptListener(SftpListener listener)
The "backwards dispatching" support.

Specified by:
acceptListener in class SftpEvent
Parameters:
listener - the event listener

Secure iNet Factory

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