com.jscape.inet.sftp.events
Class SftpListingEvent
java.lang.Object
com.jscape.inet.sftp.events.SftpEvent
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SftpListingEvent
public SftpListingEvent(Sftp source,
java.util.Enumeration files)
- Creates a new event instance.
- Parameters:
source
- the source of the eventfiles
- an enumeration of SftpFile
objects- See Also:
SftpFile
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
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved