Class DefaultDownloadService

    • Constructor Detail

      • DefaultDownloadService

        public DefaultDownloadService()
    • Method Detail

      • download

        public Download download​(Location source,
                                 Location destination)
        Description copied from interface: DownloadService
        Downloads data from the given source, storing it into the given destination.
        Specified by:
        download in interface DownloadService
        Parameters:
        source - The location of the needed data.
        destination - The location where the needed data should be stored.
      • download

        public Download download​(Location source,
                                 Location destination,
                                 LocationCache cache)
        Description copied from interface: DownloadService
        Downloads data from the given source, storing it into the given destination.
        Specified by:
        download in interface DownloadService
        Parameters:
        source - The location of the needed data.
        destination - The location where the needed data should be stored.
        cache - The cache from which already-downloaded data should be pulled preferentially, and to which newly-downloaded data should be stored for next time.