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, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic Download download(Location source, Location destination)
DownloadServicedownload in interface DownloadServicesource - 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)
DownloadServicedownload in interface DownloadServicesource - 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 © 2009–2023 SciJava. All rights reserved.