DownloadListener (IcedTea-Web: NetX )
Keywords: net.sourceforge.jnlp.event.DownloadListener interface
Date: 2021-05-10

net.sourceforge.jnlp.event

## Interface DownloadListener

- All Superinterfaces:
    java.util.EventListener

      public interface DownloadListener
      extends java.util.EventListener

  The listener that is notified of the state of resources being downloaded by a ResourceTracker. Events may be delivered on a background thread, and the event methods should complete quickly so that they do not slow down other downloading in progress by tying up a thread.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `downloadCompleted(DownloadEvent downloadEvent)` Called when a download completed or there was an error.
    `void` | `downloadStarted(DownloadEvent downloadEvent)` Called when a download starts.
    `void` | `updateStarted(DownloadEvent downloadEvent)` Called when a resource is checked for being up-to-date.

- - ### Method Detail

    - #### updateStarted

          void updateStarted(DownloadEvent downloadEvent)

      Called when a resource is checked for being up-to-date.
      Parameters:
        `downloadEvent` - information about started update

    - #### downloadStarted

          void downloadStarted(DownloadEvent downloadEvent)

      Called when a download starts.
      Parameters:
        `downloadEvent` - information about started download

    - #### downloadCompleted

          void downloadCompleted(DownloadEvent downloadEvent)

      Called when a download completed or there was an error.
      Parameters:
        `downloadEvent` - information about finished download

Submit a bug or feature