public class DefaultDownloadService extends AbstractService implements DownloadService
DownloadService
.Constructor and Description |
---|
DefaultDownloadService() |
Modifier and Type | Method and Description |
---|---|
Download |
download(Location source,
Location destination)
Downloads data from the given source, storing it into the given
destination.
|
Download |
download(Location source,
Location destination,
LocationCache cache)
Downloads data from the given source, storing it into the given
destination.
|
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public Download download(Location source, Location destination)
DownloadService
download
in interface DownloadService
source
- The location of the needed data.destination
- The location where the needed data should be stored.public Download download(Location source, Location destination, LocationCache cache)
DownloadService
download
in interface DownloadService
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.Copyright © 2015–2022 SciJava. All rights reserved.