Package org.scijava.download
Interface DownloadService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,RichPlugin,SciJavaPlugin,SciJavaService,Service,Versioned
- All Known Implementing Classes:
DefaultDownloadService
public interface DownloadService extends SciJavaService
Service for managing retrieval of remote resources.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Downloaddownload(Location source, Location destination)Downloads data from the given source, storing it into the given destination.Downloaddownload(Location source, Location destination, LocationCache cache)Downloads data from the given source, storing it into the given destination.-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
download
Download download(Location source, Location destination)
Downloads data from the given source, storing it into the given destination.- Parameters:
source- The location of the needed data.destination- The location where the needed data should be stored.
-
download
Download download(Location source, Location destination, LocationCache cache)
Downloads data from the given source, storing it into the given destination.- 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.
-
-