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

    Constructors
    Constructor and Description
    `SftpListingEvent(Sftp source, java.util.Enumeration files)` Creates a new event instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(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

  - ### Method Detail

    - #### getFiles

          public java.util.Enumeration getFiles()

      Obtains the file listing.
      Returns:
        a java.util.Enumeration of SftpFile

    - #### accept

          public void accept(SftpListener listener)

      The "backwards dispatching" support.
      Specified by:
        `accept` in class `SftpEvent`
      Parameters:
        `listener` - the event listener

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